ptrace support has been tested on Debian/riscv64.

This commit is contained in:
Todd C. Miller
2022-05-16 09:08:45 -06:00
parent 906eb19ece
commit 74c6353a84
2 changed files with 2 additions and 3 deletions

View File

@@ -187,7 +187,6 @@
} \
} while (0)
#elif defined(__riscv) && __riscv_xlen == 64
/* Untested/incomplete. */
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_RISCV64
# define user_pt_regs user_regs_struct
# define reg_syscall(x) (x).a7

View File

@@ -96,11 +96,11 @@ 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(__arm__) || defined(__powerpc__)
# if defined(__amd64__) || defined(__i386__) || defined(__aarch64__) || defined(__arm__) || defined(__powerpc__) || (defined(__riscv) && __riscv_xlen == 64)
# ifndef HAVE_PTRACE_INTERCEPT
# define HAVE_PTRACE_INTERCEPT 1
# endif /* HAVE_PTRACE_INTERCEPT */
# endif /* __amd64__ || __i386__ || __aarch64__ */
# endif /* __amd64__ || __i386__ || __aarch64__ || __riscv */
# endif /* HAVE_DECL_SECCOMP_SET_MODE_FILTER */
#endif /* _PATH_SUDO_INTERCEPT && __linux__ */