wayneko/module.nix: more systemd hardening tweaks
This commit is contained in:
parent
6ba88e2edc
commit
824e30fc7c
1 changed files with 3 additions and 6 deletions
|
@ -31,10 +31,11 @@ in {
|
|||
PrivateTmp = true;
|
||||
PrivateUsers = true;
|
||||
ProcSubset = "pid";
|
||||
|
||||
ProtectClock = true;
|
||||
ProtectControlGroups = true;
|
||||
ProtectControlGroup = true;
|
||||
ProtectHome = "true";
|
||||
ProtectHome = "read-only";
|
||||
ProtectHostname = true;
|
||||
ProtectKernelLogs = true;
|
||||
ProtectKernelModules = true;
|
||||
|
@ -48,11 +49,7 @@ in {
|
|||
|
||||
SystemCallArchitectures = ["native"];
|
||||
|
||||
SystemCallFilter = [
|
||||
"@system-service"
|
||||
"~@privileged"
|
||||
"~@resources"
|
||||
];
|
||||
SystemCallFilter = "~@clock @cpu-emulation @debug @obsolete @module @mount @raw-io @reboot @swap @privileged";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue