Messages in this thread | | | From | Jann Horn <> | Date | Fri, 30 Oct 2020 16:34:03 +0100 | Subject | Re: [PATCH v1 2/2] seccomp: Set PF_SUPERPRIV when checking capability |
| |
On Fri, Oct 30, 2020 at 1:39 PM Mickaël Salaün <mic@digikod.net> 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 <jannh@google.com> > Cc: Kees Cook <keescook@chromium.org> > Cc: Tyler Hicks <tyhicks@linux.microsoft.com> > Cc: Will Drewry <wad@chromium.org> > Cc: stable@vger.kernel.org > Fixes: e2cfabdfd075 ("seccomp: add system call filtering using BPF") > Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Reviewed-by: Jann Horn <jannh@google.com>
| |