diff options
author | David Zeuthen <davidz@redhat.com> | 2012-05-23 17:30:51 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2012-05-23 17:30:51 -0400 |
commit | 9b06da6b9b630b589affc9d555ba56af96888e9c (patch) | |
tree | aa92d6c5f3aee843ce5bb8cb1dac8dbfc74bd90c /src | |
parent | 6fbcc6cd839680fcefd81c4a43676e7c031c9859 (diff) |
Add default rules
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/polkitbackend/50-default.rules | 12 | ||||
-rw-r--r-- | src/polkitbackend/50-localauthority.conf | 10 | ||||
-rw-r--r-- | src/polkitbackend/Makefile.am | 4 |
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 : |