summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2008-12-07 14:14:19 -0500
committerDavid Zeuthen <davidz@redhat.com>2008-12-07 14:14:19 -0500
commit71e3b425054e60c7f4592ba56b082cd2a5f46265 (patch)
tree89515bd86770b012b4c3665ee5795b82e51934a1 /actions
parent7ef7e0a3a7a7718fe7148edd9693b201053907ef (diff)
downloadpolkit-71e3b425054e60c7f4592ba56b082cd2a5f46265.tar.gz
add core polkit actions
Diffstat (limited to 'actions')
-rw-r--r--actions/Makefile.am16
-rw-r--r--actions/org.freedesktop.policykit.policy.in51
2 files changed, 67 insertions, 0 deletions
diff --git a/actions/Makefile.am b/actions/Makefile.am
new file mode 100644
index 0000000..f111078
--- /dev/null
+++ b/actions/Makefile.am
@@ -0,0 +1,16 @@
+
+polkit_actiondir = $(datadir)/polkit-1/actions
+
+dist_polkit_action_DATA = org.freedesktop.policykit.policy
+
+@INTLTOOL_POLICY_RULE@
+
+#check:
+# $(top_builddir)/tools/polkit-policy-file-validate-1 $(top_srcdir)/policy/$(dist_polkit_action_DATA)
+
+clean-local :
+ rm -f *~
+
+DISTCLEANFILES = org.freedesktop.policykit.policy
+
+EXTRA_DIST = org.freedesktop.policykit.policy.in
diff --git a/actions/org.freedesktop.policykit.policy.in b/actions/org.freedesktop.policykit.policy.in
new file mode 100644
index 0000000..9613355
--- /dev/null
+++ b/actions/org.freedesktop.policykit.policy.in
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
+
+<!-- Policy definitions for core PolicyKit actions. Copyright (c) 2008 Red Hat, Inc. -->
+
+<policyconfig>
+ <vendor>The PolicyKit Project</vendor>
+ <vendor_url>http://hal.freedesktop.org/docs/PolicyKit/</vendor_url>
+
+ <action id="org.freedesktop.policykit.read">
+ <_description>Read authorizations of other users</_description>
+ <_message>Authentication is required to read authorizations of other users</_message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep_always</allow_active>
+ </defaults>
+ </action>
+
+ <action id="org.freedesktop.policykit.revoke">
+ <_description>Revoke authorizations from other users</_description>
+ <_message>Authentication is required to revoke authorizations other users</_message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep_always</allow_active>
+ </defaults>
+ </action>
+
+ <action id="org.freedesktop.policykit.grant">
+ <_description>Grant authorizations to other users</_description>
+ <_message>Authentication is required to grant authorizations to other users</_message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep_always</allow_active>
+ </defaults>
+ </action>
+
+ <action id="org.freedesktop.policykit.modify-defaults">
+ <_description>Modify defaults for implicit authorizations</_description>
+ <_message>Authentication is required to modify the defaults for implicit authorizations</_message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep_always</allow_active>
+ </defaults>
+ </action>
+</policyconfig>