1

polkit updates

This commit is contained in:
2023-05-11 23:27:04 +02:00
parent 55310df391
commit f9303f90bf

View File

@ -72,16 +72,22 @@
polkit.extraConfig = ''
// Allow to manage podman services
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.systemd1.manage-units" && subject.user == "christoph" &&
(action.lookup("unit") == "podman-jellyfin.service" ||
action.lookup("unit") == "podman-sonarr.service" ||
action.lookup("unit") == "podman-sabnzbd.service" ||
action.lookup("unit") == "podman-hydra.service" ||
action.lookup("unit") == "podman-homeassistant.service" ||
action.lookup("unit") == "podman-picard.service" ||
action.lookup("unit") == "podman-radarr.service" ||
action.lookup("unit") == "wg0-LU-16.service" ||
action.lookup("unit") == "wg0-DE-115.service")) {
if (action.id == "org.freedesktop.systemd1.manage-units" && subject.user == "christoph" && (
// HomeLab Selfhosted Services
action.lookup("unit") == "podman-jellyfin.service" ||
action.lookup("unit") == "podman-sonarr.service" ||
action.lookup("unit") == "podman-radarr.service" ||
action.lookup("unit") == "podman-hydra.service" ||
action.lookup("unit") == "podman-sabnzbd.service" ||
action.lookup("unit") == "podman-homeassistant.service" ||
// Various Containers
action.lookup("unit") == "podman-stablediffusion.service" ||
// VPNs
action.lookup("unit") == "wg0-LU-16.service" ||
action.lookup("unit") == "wg0-DE-115.service"
)) {
return polkit.Result.YES;
}
});