]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/seccomp.c
LSM: generalize flag passing to security_capable
[mirror_ubuntu-bionic-kernel.git] / kernel / seccomp.c
index 075e344a87c3f9d4fbdd6b4aa9929248cd7e9a63..791f56869324462cad2340cc41497d47d827c60d 100644 (file)
@@ -383,8 +383,8 @@ static struct seccomp_filter *seccomp_prepare_filter(struct sock_fprog *fprog)
         * behavior of privileged children.
         */
        if (!task_no_new_privs(current) &&
-           security_capable_noaudit(current_cred(), current_user_ns(),
-                                    CAP_SYS_ADMIN) != 0)
+           security_capable(current_cred(), current_user_ns(),
+                                    CAP_SYS_ADMIN, CAP_OPT_NOAUDIT) != 0)
                return ERR_PTR(-EACCES);
 
        /* Allocate a new seccomp_filter */