transmission: fix #98904

This commit is contained in:
Julien Moutinho 2020-11-06 23:08:22 +01:00 committed by Bjørn Forsman
parent c54c614000
commit c48faf07f4

View file

@ -236,6 +236,7 @@ in
# an AppArmor profile is provided to get a confinement based upon paths and rights. # an AppArmor profile is provided to get a confinement based upon paths and rights.
builtins.storeDir builtins.storeDir
"/etc" "/etc"
"/run"
] ++ ] ++
optional (cfg.settings.script-torrent-done-enabled && optional (cfg.settings.script-torrent-done-enabled &&
cfg.settings.script-torrent-done-filename != "") cfg.settings.script-torrent-done-filename != "")
@ -408,6 +409,7 @@ in
#r @{PROC}/@{pid}/environ, #r @{PROC}/@{pid}/environ,
r @{PROC}/@{pid}/mounts, r @{PROC}/@{pid}/mounts,
rwk /tmp/tr_session_id_*, rwk /tmp/tr_session_id_*,
r /run/systemd/resolve/stub-resolv.conf,
r ${pkgs.openssl.out}/etc/**, r ${pkgs.openssl.out}/etc/**,
r ${config.systemd.services.transmission.environment.CURL_CA_BUNDLE}, r ${config.systemd.services.transmission.environment.CURL_CA_BUNDLE},