1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02:00

syncthing: add more service sandboxing

This commit is contained in:
Robert Helgesson 2021-08-14 13:25:54 +02:00
parent a965b097b1
commit 654d82f888
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -61,8 +61,15 @@ with lib;
Restart = "on-failure";
SuccessExitStatus = [ 3 4 ];
RestartForceExitStatus = [ 3 4 ];
# Sandboxing.
LockPersonality = true;
MemoryDenyWriteExecute = true;
NoNewPrivileges = true;
PrivateUsers = true;
RestrictNamespaces = true;
SystemCallArchitectures = "native";
SystemCallFilter = "@system-service";
};
Install = { WantedBy = [ "default.target" ]; };