summaryrefslogtreecommitdiffstats
path: root/kernel/seccomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/seccomp.c')
-rw-r--r--kernel/seccomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index a43c601ac252..54a0347ca812 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -445,8 +445,8 @@ static struct seccomp_filter *seccomp_prepare_filter(struct sock_fprog *fprog)
445 * behavior of privileged children. 445 * behavior of privileged children.
446 */ 446 */
447 if (!task_no_new_privs(current) && 447 if (!task_no_new_privs(current) &&
448 security_capable_noaudit(current_cred(), current_user_ns(), 448 security_capable(current_cred(), current_user_ns(),
449 CAP_SYS_ADMIN) != 0) 449 CAP_SYS_ADMIN, CAP_OPT_NOAUDIT) != 0)
450 return ERR_PTR(-EACCES); 450 return ERR_PTR(-EACCES);
451 451
452 /* Allocate a new seccomp_filter */ 452 /* Allocate a new seccomp_filter */