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;
|
PrivateTmp = true;
|
||||||
PrivateUsers = true;
|
PrivateUsers = true;
|
||||||
ProcSubset = "pid";
|
ProcSubset = "pid";
|
||||||
|
|
||||||
ProtectClock = true;
|
ProtectClock = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
ProtectControlGroup = true;
|
ProtectControlGroup = true;
|
||||||
ProtectHome = "true";
|
ProtectHome = "read-only";
|
||||||
ProtectHostname = true;
|
ProtectHostname = true;
|
||||||
ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
ProtectKernelModules = true;
|
ProtectKernelModules = true;
|
||||||
|
@ -48,11 +49,7 @@ in {
|
||||||
|
|
||||||
SystemCallArchitectures = ["native"];
|
SystemCallArchitectures = ["native"];
|
||||||
|
|
||||||
SystemCallFilter = [
|
SystemCallFilter = "~@clock @cpu-emulation @debug @obsolete @module @mount @raw-io @reboot @swap @privileged";
|
||||||
"@system-service"
|
|
||||||
"~@privileged"
|
|
||||||
"~@resources"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue