polkit: fix polkit-agent-helper@ sandbox for pam_zfs_key (#507200)

This commit is contained in:
Philip Taron
2026-04-06 15:39:20 +00:00
committed by GitHub
+6
View File
@@ -100,6 +100,12 @@ in
# ~/.config/Yubico/u2f_keys (the default key file location)
ProtectHome = "read-only";
})
(lib.mkIf config.security.pam.zfs.enable {
PrivateDevices = false;
DeviceAllow = [
"/dev/zfs rw"
];
})
];
# The polkit daemon reads action/rule files