nspawn: Allow bpf() syscall if CAP_BPF is retained
CAP_BPF is closely associated with the bpf() syscall so it makes sense to allow the latter if the former is retained.
This commit is contained in:
committed by
Luca Boccassi
parent
28cc15135a
commit
9cb6d2bf85
@@ -108,6 +108,7 @@ static int add_syscall_filters(
|
||||
{ CAP_SYS_BOOT, "reboot" },
|
||||
{ CAP_SYSLOG, "syslog" },
|
||||
{ CAP_SYS_TTY_CONFIG, "vhangup" },
|
||||
{ CAP_BPF, "bpf", },
|
||||
|
||||
/*
|
||||
* The following syscalls and groups are knowingly excluded:
|
||||
@@ -117,7 +118,6 @@ static int add_syscall_filters(
|
||||
* @pkey
|
||||
* @swap
|
||||
*
|
||||
* bpf
|
||||
* fanotify_init
|
||||
* fanotify_mark
|
||||
* kexec_file_load
|
||||
|
||||
Reference in New Issue
Block a user