diff options
author | Mickaël Salaün <mic@linux.microsoft.com> | 2020-10-30 13:38:49 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-11-17 12:53:22 -0800 |
commit | fb14528e443646dd3fd02df4437fcf5265b66baa (patch) | |
tree | b3db578808d673b8e117351e02a5d20d6f3ebe76 /drivers/fpga/fpga-bridge.c | |
parent | cf23705244c947151179f929774fabf71e239eee (diff) |
seccomp: Set PF_SUPERPRIV when checking capability
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>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20201030123849.770769-3-mic@digikod.net
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions