ptrace support has been tested on Debian/riscv64.
This commit is contained in:
@@ -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
|
||||
|
@@ -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__ */
|
||||
|
||||
|
Reference in New Issue
Block a user