Fix Seccomp filter for newer GNU/Linux systems (Bug#51073).
On some systems, process startup calls prctl(PR_CAPBSET_READ) via 'cap_get_bound'. We can just return EINVAL. * lib-src/seccomp-filter.c (main): Add a rule for prctl(PR_CAPBSET_READ, ...).
This commit is contained in:
parent
75d9fbec88
commit
b497add971
1 changed files with 2 additions and 0 deletions
|
@ -351,6 +351,8 @@ main (int argc, char **argv)
|
||||||
calls at startup time to set up thread-local storage. */
|
calls at startup time to set up thread-local storage. */
|
||||||
RULE (SCMP_ACT_ALLOW, SCMP_SYS (execve));
|
RULE (SCMP_ACT_ALLOW, SCMP_SYS (execve));
|
||||||
RULE (SCMP_ACT_ALLOW, SCMP_SYS (set_tid_address));
|
RULE (SCMP_ACT_ALLOW, SCMP_SYS (set_tid_address));
|
||||||
|
RULE (SCMP_ACT_ERRNO (EINVAL), SCMP_SYS (prctl),
|
||||||
|
SCMP_A0_32 (SCMP_CMP_EQ, PR_CAPBSET_READ));
|
||||||
RULE (SCMP_ACT_ALLOW, SCMP_SYS (arch_prctl),
|
RULE (SCMP_ACT_ALLOW, SCMP_SYS (arch_prctl),
|
||||||
SCMP_A0_32 (SCMP_CMP_EQ, ARCH_SET_FS));
|
SCMP_A0_32 (SCMP_CMP_EQ, ARCH_SET_FS));
|
||||||
RULE (SCMP_ACT_ERRNO (EINVAL), SCMP_SYS (arch_prctl),
|
RULE (SCMP_ACT_ERRNO (EINVAL), SCMP_SYS (arch_prctl),
|
||||||
|
|
Loading…
Add table
Reference in a new issue