Merge pull request #13940 from keur/protect_kernel_logs

Add ProtectKernelLogs to systemd.exec
This commit is contained in:
Lennart Poettering
2019-11-15 16:26:10 +01:00
committed by GitHub
30 changed files with 261 additions and 15 deletions
+3
View File
@@ -4269,6 +4269,9 @@ int unit_patch_contexts(Unit *u) {
if (ec->protect_kernel_modules)
ec->capability_bounding_set &= ~(UINT64_C(1) << CAP_SYS_MODULE);
if (ec->protect_kernel_logs)
ec->capability_bounding_set &= ~(UINT64_C(1) << CAP_SYSLOG);
if (ec->dynamic_user) {
if (!ec->user) {
r = user_from_unit_name(u, &ec->user);