mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Improve /proc/self/exe substitution on Android
* exec/configure.ac (USER_SWORD): New macro. * exec/exec.c (format_pid): Export this function. * exec/exec.h: * exec/trace.c (canon_path): New function. (handle_readlinkat, handle_openat): Test complete file name against /proc/self/exe, and further check for /proc/pid/exe.
This commit is contained in:
parent
db5c8bda63
commit
30bc867aec
4 changed files with 121 additions and 11 deletions
|
|
@ -180,6 +180,7 @@ extern int aarch64_set_regs (pid_t, USER_REGS_STRUCT *, bool);
|
|||
|
||||
|
||||
|
||||
extern char *format_pid (char *, unsigned int);
|
||||
extern USER_WORD user_alloca (struct exec_tracee *, USER_REGS_STRUCT *,
|
||||
USER_REGS_STRUCT *, USER_WORD);
|
||||
extern int user_copy (struct exec_tracee *, const unsigned char *,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue