nixos/logrotate: reorder setuid syscall group

Relevant parts of @setuid are in @privileged, so we need to flip the
order around, to grant @setuid in spite of denying @privileged.
This commit is contained in:
Martin Weinelt 2024-09-30 13:24:08 +02:00
parent 7c8fc691cf
commit 2dabc4fce1
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -285,9 +285,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) {