Skip to content

Commit

Permalink
exec_ptrace: fix missing sudo_pt_regs on aarch64
Browse files Browse the repository at this point in the history
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: 2eb8ff1
  • Loading branch information
delroth committed Jun 7, 2022
1 parent a4b2012 commit d549adf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/exec_ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d549adf

Please sign in to comment.