mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-25 10:00:28 +00:00
Merge pull request #148488 from NixOS/backport-148458-to-release-21.11
[Backport release-21.11] nixos/snapraid: relax permissions of snapraid-sync
This commit is contained in:
@@ -193,7 +193,6 @@ in
|
||||
LockPersonality = true;
|
||||
MemoryDenyWriteExecute = true;
|
||||
NoNewPrivileges = true;
|
||||
PrivateDevices = true;
|
||||
PrivateTmp = true;
|
||||
ProtectClock = true;
|
||||
ProtectControlGroups = true;
|
||||
@@ -208,7 +207,8 @@ in
|
||||
SystemCallArchitectures = "native";
|
||||
SystemCallFilter = "@system-service";
|
||||
SystemCallErrorNumber = "EPERM";
|
||||
CapabilityBoundingSet = "CAP_DAC_OVERRIDE";
|
||||
CapabilityBoundingSet = "CAP_DAC_OVERRIDE" ++
|
||||
lib.optionalString cfg.touchBeforeSync " CAP_FOWNER";
|
||||
|
||||
ProtectSystem = "strict";
|
||||
ProtectHome = "read-only";
|
||||
|
||||
Reference in New Issue
Block a user