File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
nixos/modules/services/logging Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 260260 # hardening
261261 CapabilityBoundingSet = [
262262 "CAP_CHOWN"
263+ "CAP_DAC_OVERRIDE"
264+ "CAP_SETUID"
263265 "CAP_SETGID"
264266 ] ;
265267 DevicePolicy = "closed" ;
280282 ProtectSystem = "full" ;
281283 RestrictNamespaces = true ;
282284 RestrictRealtime = true ;
283- RestrictSUIDSGID = true ;
285+ RestrictSUIDSGID = false ; # can create sgid directories
284286 SystemCallArchitectures = "native" ;
285287 SystemCallFilter = [
286- "@system-service"
288+ "@system-service @setuid "
287289 "~@privileged @resources"
288290 "@chown"
289291 ] ;
290292 UMask = "0027" ;
291293 } // lib . optionalAttrs ( ! cfg . allowNetworking ) {
292- PrivateNetwork = true ;
294+ PrivateNetwork = true ; # e.g. mail delivery
293295 RestrictAddressFamilies = "none" ;
294296 } ;
295297 } ;
You can’t perform that action at this time.
0 commit comments