mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 08:26:52 +03:00
nspawn: prohibit access to the kernel log buffer by default
Unless CAP_SYSLOG is explicitly passed block all access to kmg
This commit is contained in:
parent
4c6d20dece
commit
5ba7a26847
@ -2941,6 +2941,7 @@ static int setup_seccomp(void) {
|
|||||||
{ CAP_SYS_MODULE, SCMP_SYS(init_module) },
|
{ CAP_SYS_MODULE, SCMP_SYS(init_module) },
|
||||||
{ CAP_SYS_MODULE, SCMP_SYS(finit_module) },
|
{ CAP_SYS_MODULE, SCMP_SYS(finit_module) },
|
||||||
{ CAP_SYS_MODULE, SCMP_SYS(delete_module) },
|
{ CAP_SYS_MODULE, SCMP_SYS(delete_module) },
|
||||||
|
{ CAP_SYSLOG, SCMP_SYS(syslog) },
|
||||||
};
|
};
|
||||||
|
|
||||||
scmp_filter_ctx seccomp;
|
scmp_filter_ctx seccomp;
|
||||||
|
Loading…
Reference in New Issue
Block a user