From 817a0ab4d3aa87bd812648277d977b8d76587028 Mon Sep 17 00:00:00 2001 From: Luc Date: Thu, 20 Apr 2023 11:30:49 +0200 Subject: [PATCH] updated polkit config --- config-files/polkit/00-mounting.rules | 5 +++++ .../polkit/{00-polkit.rules => 00-power-management.rules} | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 config-files/polkit/00-mounting.rules rename config-files/polkit/{00-polkit.rules => 00-power-management.rules} (70%) diff --git a/config-files/polkit/00-mounting.rules b/config-files/polkit/00-mounting.rules new file mode 100644 index 0000000..e26fb99 --- /dev/null +++ b/config-files/polkit/00-mounting.rules @@ -0,0 +1,5 @@ +polkit.addRule(function(action, subject) +{ + if (action.id.startsWith("org.freedesktop.udisks2.") && subject.isInGroup("wheel")) + return polkit.Result.YES; +}); \ No newline at end of file diff --git a/config-files/polkit/00-polkit.rules b/config-files/polkit/00-power-management.rules similarity index 70% rename from config-files/polkit/00-polkit.rules rename to config-files/polkit/00-power-management.rules index e83111f..c14dce1 100644 --- a/config-files/polkit/00-polkit.rules +++ b/config-files/polkit/00-power-management.rules @@ -8,10 +8,4 @@ polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "/bin/zzz" && subject.isInGroup("wheel")) return polkit.Result.YES; -}); - -polkit.addRule(function(action, subject) -{ - if (action.id.startsWith("org.freedesktop.udisks2.") && subject.isInGroup("wheel")) - return polkit.Result.YES; -}); +}); \ No newline at end of file