On Fri, Oct 30, 2020 at 1:39 PM Mickaël Salaün <m...@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 <ja...@google.com>
> Cc: Kees Cook <keesc...@chromium.org>
> Cc: Tyler Hicks <tyhi...@linux.microsoft.com>
> Cc: Will Drewry <w...@chromium.org>
> Cc: sta...@vger.kernel.org
> Fixes: e2cfabdfd075 ("seccomp: add system call filtering using BPF")
> Signed-off-by: Mickaël Salaün <m...@linux.microsoft.com>

Reviewed-by: Jann Horn <ja...@google.com>

Reply via email to