Skip to content

Commit

Permalink
nixos/logrotate: reorder setuid syscall group (#345487)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Sep 30, 2024
2 parents f0ab201 + 4ca03e3 commit 16524a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nixos/modules/services/logging/logrotate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ in
CapabilityBoundingSet = [
"CAP_CHOWN"
"CAP_DAC_OVERRIDE"
"CAP_KILL"
"CAP_SETUID"
"CAP_SETGID"
];
Expand All @@ -285,9 +286,9 @@ in
RestrictSUIDSGID = false; # can create sgid directories
SystemCallArchitectures = "native";
SystemCallFilter = [
"@system-service @setuid"
"@system-service"
"~@privileged @resources"
"@chown"
"@chown @setuid"
];
UMask = "0027";
} // lib.optionalAttrs (!cfg.allowNetworking) {
Expand Down

0 comments on commit 16524a2

Please sign in to comment.