On Fri, Oct 30, 2020 at 1:39 PM Mickaël Salaün <[email protected]> wrote: > Replace the use of security_capable(current_cred(), ...) with > ns_capable_noaudit() which set PF_SUPERPRIV. > > Since commit 98f368e9e263 ("kernel: Add noaudit variant of > ns_capable()"), a new ns_capable_noaudit() helper is available. Let's > use it! > > Cc: Jann Horn <[email protected]> > Cc: Kees Cook <[email protected]> > Cc: Tyler Hicks <[email protected]> > Cc: Will Drewry <[email protected]> > Cc: [email protected] > Fixes: e2cfabdfd075 ("seccomp: add system call filtering using BPF") > Signed-off-by: Mickaël Salaün <[email protected]>
Reviewed-by: Jann Horn <[email protected]>

