From ae7824edefca1c4f46219613111db928ac9a1ac7 Mon Sep 17 00:00:00 2001 From: ver4a Date: Thu, 13 Mar 2025 14:00:21 +0100 Subject: [PATCH] Allow wheel members to manage systemd units without prompts. Required for passwordless run0 usage. --- etc/polkit-1/rules.d/80-systemd-unit-manage.rules | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 etc/polkit-1/rules.d/80-systemd-unit-manage.rules diff --git a/etc/polkit-1/rules.d/80-systemd-unit-manage.rules b/etc/polkit-1/rules.d/80-systemd-unit-manage.rules new file mode 100644 index 0000000..b45d63f --- /dev/null +++ b/etc/polkit-1/rules.d/80-systemd-unit-manage.rules @@ -0,0 +1,5 @@ +polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.systemd1.manage-units" && subject.local && subject.active && subject.isInGroup("wheel")) { + return polkit.Result.YES; + } +});