summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-dev/LinHES9_iso/cust_skel/airootfs/etc/polkit-1/rules.d
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2022-11-18 20:12:59 (GMT)
committerBritney Fransen <brfransen@gmail.com>2022-11-18 20:12:59 (GMT)
commit731cab73b54223a7ccfeec293b1f57c0477a5823 (patch)
treef583666c8d345dc676d279e6aa5476daedcc144a /linhes/linhes-dev/LinHES9_iso/cust_skel/airootfs/etc/polkit-1/rules.d
parentaa49a137c882caf85fe2036641d1eaa87b900b7a (diff)
downloadlinhes_pkgbuild-731cab73b54223a7ccfeec293b1f57c0477a5823.zip
linhes_pkgbuild-731cab73b54223a7ccfeec293b1f57c0477a5823.tar.gz
linhes_pkgbuild-731cab73b54223a7ccfeec293b1f57c0477a5823.tar.bz2
linhes-dev: add LinHES9_iso for building ISO
Diffstat (limited to 'linhes/linhes-dev/LinHES9_iso/cust_skel/airootfs/etc/polkit-1/rules.d')
-rw-r--r--linhes/linhes-dev/LinHES9_iso/cust_skel/airootfs/etc/polkit-1/rules.d/49-nopasswd_global.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/linhes/linhes-dev/LinHES9_iso/cust_skel/airootfs/etc/polkit-1/rules.d/49-nopasswd_global.rules b/linhes/linhes-dev/LinHES9_iso/cust_skel/airootfs/etc/polkit-1/rules.d/49-nopasswd_global.rules
new file mode 100644
index 0000000..afc8670
--- /dev/null
+++ b/linhes/linhes-dev/LinHES9_iso/cust_skel/airootfs/etc/polkit-1/rules.d/49-nopasswd_global.rules
@@ -0,0 +1,9 @@
+/* Allow members of the wheel group to execute any actions
+ * without password authentication, similar to "sudo NOPASSWD:"
+ */
+polkit.addRule(function(action, subject) {
+ if (subject.isInGroup("wheel")) {
+ return polkit.Result.YES;
+ }
+});
+