summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2012-05-23 17:30:51 -0400
committerDavid Zeuthen <davidz@redhat.com>2012-05-23 17:30:51 -0400
commit9b06da6b9b630b589affc9d555ba56af96888e9c (patch)
treeaa92d6c5f3aee843ce5bb8cb1dac8dbfc74bd90c
parent6fbcc6cd839680fcefd81c4a43676e7c031c9859 (diff)
downloadpolkit-9b06da6b9b630b589affc9d555ba56af96888e9c.tar.gz
Add default rules
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--src/polkitbackend/50-default.rules12
-rw-r--r--src/polkitbackend/50-localauthority.conf10
-rw-r--r--src/polkitbackend/Makefile.am4
3 files changed, 16 insertions, 10 deletions
diff --git a/src/polkitbackend/50-default.rules b/src/polkitbackend/50-default.rules
new file mode 100644
index 0000000..9d3c33d
--- /dev/null
+++ b/src/polkitbackend/50-default.rules
@@ -0,0 +1,12 @@
+/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */
+
+// DO NOT EDIT THIS FILE, it will be overwritten on update
+//
+// Default rules for polkit
+//
+// See the polkit(8) man page for more information
+// about configuring polkit.
+
+polkit.addAdminRule(function(action, subject, details) {
+ return ["unix-group:wheel"];
+});
diff --git a/src/polkitbackend/50-localauthority.conf b/src/polkitbackend/50-localauthority.conf
deleted file mode 100644
index 5e44bde..0000000
--- a/src/polkitbackend/50-localauthority.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-# Configuration file for the PolicyKit Local Authority.
-#
-# DO NOT EDIT THIS FILE, it will be overwritten on update.
-#
-# See the pklocalauthority(8) man page for more information
-# about configuring the Local Authority.
-#
-
-[Configuration]
-AdminIdentities=unix-group:wheel
diff --git a/src/polkitbackend/Makefile.am b/src/polkitbackend/Makefile.am
index c5b8d8a..1bafd94 100644
--- a/src/polkitbackend/Makefile.am
+++ b/src/polkitbackend/Makefile.am
@@ -62,11 +62,15 @@ libpolkit_backend_1_la_LIBADD = \
$(LIBJS_LIBS) \
$(NULL)
+rulesdir = $(sysconfdir)/polkit-1/rules.d
+rules_DATA = 50-default.rules
+
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = \
init.js \
toarray.pl \
+ $(rules_DATA) \
$(NULL)
dist-hook :