diff options
| author | Gautam Menghani <[email protected]> | 2022-07-31 09:25:29 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2022-12-02 19:32:53 +0000 |
| commit | fc1e3980044f0f812252f5f164a8350376d62eb7 (patch) | |
| tree | fa260d5842ee2ee72fa2dd3d83711015066c435a /drivers/fpga/fpga-bridge.c | |
| parent | Linux 6.1-rc2 (diff) | |
| download | kernel-fc1e3980044f0f812252f5f164a8350376d62eb7.tar.gz kernel-fc1e3980044f0f812252f5f164a8350376d62eb7.zip | |
selftests/seccomp: Check CAP_SYS_ADMIN capability in the test mode_filter_without_nnp
In the "mode_filter_without_nnp" test in seccomp_bpf, there is currently
a TODO which asks to check the capability CAP_SYS_ADMIN instead of euid.
This patch adds support to check if the calling process has the flag
CAP_SYS_ADMIN, and also if this flag has CAP_EFFECTIVE set.
Signed-off-by: Gautam Menghani <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
