History

seccomp: remove the 'sd' argument from __secure_computing()

After the previous changes 'sd' is always NULL.

Oleg Nesterov committed 1 year ago

Commit 1027cd81 parent b37778b4 files · +10 −12Browse files

Showing the changes to kernel/entry (1 of 4 files). Show all

Unified · Split

kernel/entry/common.c+1−1
@@ -49,7 +49,7 @@ long syscall_trace_enter(struct pt_regs *regs, long syscall, · 48 unmodified lines
49 49
50 /* Do seccomp after ptrace, to catch any tracer changes. */50 /* Do seccomp after ptrace, to catch any tracer changes. */
51 if (work & SYSCALL_WORK_SECCOMP) {51 if (work & SYSCALL_WORK_SECCOMP) {
52 ret = __secure_computing(NULL);52 ret = __secure_computing();
53 if (ret == -1L)53 if (ret == -1L)
54 return ret;54 return ret;
55 }55 }