Skip to content

Commit

Permalink
service hardening: add more restrictions
Browse files Browse the repository at this point in the history
Add RestrictSUIDSGID
Add RemoveIPC
Add RestrictRealtime
Add ProtectHostname
  • Loading branch information
nixbitcoin committed May 24, 2020
1 parent 3fbfa98 commit ccc3a70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/nix-bitcoin-services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ with lib;
LockPersonality = "true";
IPAddressDeny = "any";
PrivateUsers = "true";
RestrictSUIDSGID = "true";
RemoveIPC = "true";
RestrictRealtime = "true";
ProtectHostname = "true";
CapabilityBoundingSet = "";
# @system-service whitelist and docker seccomp blacklist (except for "clone"
# which is a core requirement for systemd services)
Expand Down

0 comments on commit ccc3a70

Please sign in to comment.