ptrace-based intercept has now been tested on 32-bit arm

This commit is contained in:
Todd C. Miller
2022-05-14 13:03:19 -06:00
parent bb3c4ba07c
commit cb95b75ffa
2 changed files with 1 additions and 2 deletions

View File

@@ -83,7 +83,6 @@
} while (0)
#elif defined(__arm__)
/* Note: assumes arm EABI, not OABI */
/* Untested */
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM
# define user_pt_regs pt_regs
# define reg_syscall(x) (x).ARM_r7

View File

@@ -96,7 +96,7 @@ union sudo_token_un {
*/
#if defined(_PATH_SUDO_INTERCEPT) && defined(__linux__)
# if defined(HAVE_DECL_SECCOMP_SET_MODE_FILTER) && HAVE_DECL_SECCOMP_SET_MODE_FILTER
# if defined(__amd64__) || defined(__i386__) || defined(__aarch64__) || defined(__powerpc__)
# if defined(__amd64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__) || defined(__powerpc__)
# ifndef HAVE_PTRACE_INTERCEPT
# define HAVE_PTRACE_INTERCEPT 1
# endif /* HAVE_PTRACE_INTERCEPT */