Skip to content

Commit 2a8f45b

Browse files
committed
arm64: Do not invoke audit_syscall_* functions if !CONFIG_AUDIT_SYSCALL
This is a temporary patch to be able to compile the kernel in linux-next where the audit_syscall_* API has been changed. To be reverted once the proper arm64 fix can be applied. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 7f0b1bf commit 2a8f45b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/arm64/kernel/ptrace.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,15 +1115,19 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs)
11151115
if (test_thread_flag(TIF_SYSCALL_TRACEPOINT))
11161116
trace_sys_enter(regs, regs->syscallno);
11171117

1118+
#ifdef CONFIG_AUDITSYSCALL
11181119
audit_syscall_entry(syscall_get_arch(), regs->syscallno,
11191120
regs->orig_x0, regs->regs[1], regs->regs[2], regs->regs[3]);
1121+
#endif
11201122

11211123
return regs->syscallno;
11221124
}
11231125

11241126
asmlinkage void syscall_trace_exit(struct pt_regs *regs)
11251127
{
1128+
#ifdef CONFIG_AUDITSYSCALL
11261129
audit_syscall_exit(regs);
1130+
#endif
11271131

11281132
if (test_thread_flag(TIF_SYSCALL_TRACEPOINT))
11291133
trace_sys_exit(regs, regs_return_value(regs));

0 commit comments

Comments
 (0)