1
1
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:
Djalal Harouni 2016-10-09 12:28:25 +02:00
parent c575770b75
commit 4084e8fc89

View File

@ -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);
}