[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix service hardening
Browse files Browse the repository at this point in the history
  • Loading branch information
fxttr committed Dec 29, 2023
1 parent 251f950 commit 5333f87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/symo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ in
ExecStart = "${lib.getBin cfg.package}/bin/symo";

# Hardening
CapabilityBoundingSet = [ "AF_NETLINK" "AF_INET" "AF_INET6" ];
DeviceAllow = [ "/dev/stdin r" ];
DevicePolicy = "strict";
IPAddressAllow = "localhost";
Expand All @@ -109,7 +108,7 @@ in
RestrictRealtime = true;
RestrictSUIDSGID = true;
SystemCallArchitectures = "native";
#SystemCallFilter = [ "@system-service" "~@privileged" "~@resources" "@pkey" ];
SystemCallFilter = [ "@system-service" "~@privileged" "~@resources" "@pkey" ];
UMask = "0027";
};

Expand Down

0 comments on commit 5333f87

Please sign in to comment.