nixos/cjdns: tightened permissions via systemd, added caps
This commit is contained in:
parent
ffa3f868c9
commit
20e81f7c0d
@ -245,7 +245,10 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_RAW";
|
||||||
|
AmbientCapabilities = "CAP_NET_ADMIN CAP_NET_RAW";
|
||||||
|
ProtectSystem = "full";
|
||||||
|
MemoryDenyWriteExecute = true;
|
||||||
ProtectHome = true;
|
ProtectHome = true;
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user