nixos/tor: do not bind storeDir when systemd-confinement is enabled
Otherwise it undermines systemd-confinement whose job is to filter what gets bind mounted from the storeDir.
This commit is contained in:
@@ -1441,9 +1441,9 @@ in
|
||||
#InaccessiblePaths = [ "-+${runDir}/root" ];
|
||||
UMask = "0066";
|
||||
BindReadOnlyPaths = [
|
||||
builtins.storeDir
|
||||
"/etc"
|
||||
]
|
||||
++ lib.optional (!config.systemd.services.tor.confinement.enable) builtins.storeDir
|
||||
++ lib.optionals config.services.resolved.enable [
|
||||
"/run/systemd/resolve/stub-resolv.conf"
|
||||
"/run/systemd/resolve/resolv.conf"
|
||||
|
||||
Reference in New Issue
Block a user