summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2022-06-07 17:14:39 +0200
committerPierre Bourdon <delroth@gmail.com>2022-06-07 17:14:39 +0200
commita9db248910e8362ebee21c3c2327c8f86bb19f26 (patch)
treeec62c9752d8331d21593a0048bc88b2c70da750f
parent2155ae8ab9ff48bec8836c1c799a17a8f5ae7c55 (diff)
downloadsudo-a9db248910e8362ebee21c3c2327c8f86bb19f26.tar.gz
exec_ptrace: fix missing sudo_pt_regs on aarch64
AArch64 already had an existing "user_pt_regs" struct and didn't need a struct alias before the renaming to "sudo_pt_regs". Make the code build again by adding the now missing alias. Fixes: 2eb8ff17
-rw-r--r--src/exec_ptrace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/exec_ptrace.h b/src/exec_ptrace.h
index 7f26283a8..4a5a86581 100644
--- a/src/exec_ptrace.h
+++ b/src/exec_ptrace.h
@@ -76,6 +76,7 @@
# define reg_arg4(x) (x).r10
#elif defined(__aarch64__)
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64
+# define sudo_pt_regs struct user_pt_regs
# define reg_syscall(x) (x).regs[8] /* w8 */
# define reg_retval(x) (x).regs[0] /* x0 */
# define reg_sp(x) (x).sp /* sp */