Skip to content

Commit

Permalink
nixos/unit: update sandboxing options
Browse files Browse the repository at this point in the history
  • Loading branch information
Izorkin committed Aug 15, 2020
1 parent d56514c commit 26898b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/services/web-servers/unit/default.nix
Expand Up @@ -120,9 +120,12 @@ in {
ProtectHome = true;
PrivateTmp = true;
PrivateDevices = true;
PrivateUsers = false;
ProtectHostname = true;
ProtectClock = true;
ProtectKernelTunables = true;
ProtectKernelModules = true;
ProtectKernelLogs = true;
ProtectControlGroups = true;
RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ];
LockPersonality = true;
Expand Down

0 comments on commit 26898b8

Please sign in to comment.