mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-13 13:17:43 +03:00
core: check protect_kernel_modules and private_devices in order to setup NNP
This commit is contained in:
parent
c575770b75
commit
4084e8fc89
@ -2115,6 +2115,8 @@ static bool context_has_no_new_privileges(const ExecContext *c) {
|
||||
c->memory_deny_write_execute ||
|
||||
c->restrict_realtime ||
|
||||
c->protect_kernel_tunables ||
|
||||
c->protect_kernel_modules ||
|
||||
c->private_devices ||
|
||||
context_has_syscall_filters(c);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user