From ed7002dcae71ae014bf0205d9a6eff99448ed1fe Mon Sep 17 00:00:00 2001 From: Lakindu Akash Date: Tue, 19 Oct 2021 03:39:32 +0530 Subject: [PATCH] Add wheel group in polkit rules --- src/scripts/policies/polkit.policy | 2 +- src/scripts/policies/polkit.rules | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/policies/polkit.policy b/src/scripts/policies/polkit.policy index abcb5bd..c9453bb 100644 --- a/src/scripts/policies/polkit.policy +++ b/src/scripts/policies/polkit.policy @@ -19,7 +19,7 @@ - Authentication is required to run the Wihotspot + Authentication is required to run the create_ap wihotspot auth_admin diff --git a/src/scripts/policies/polkit.rules b/src/scripts/policies/polkit.rules index e84b065..4f6558c 100644 --- a/src/scripts/policies/polkit.rules +++ b/src/scripts/policies/polkit.rules @@ -1,8 +1,8 @@ -/* Allow users in admin group to run GParted without authentication */ +/* Allow users in admin group to run create_ap without authentication */ polkit.addRule(function(action, subject) { if ( action.id == "org.opensuse.policykit.create-ap" ) { - if (subject.isInGroup("sudo")) { + if (subject.isInGroup("sudo") || subject.isInGroup("wheel")) { return polkit.Result.YES; } else { return polkit.Result.AUTH_ADMIN;