diff options
author | David Zeuthen <davidz@redhat.com> | 2008-12-07 14:14:19 -0500 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2008-12-07 14:14:19 -0500 |
commit | 71e3b425054e60c7f4592ba56b082cd2a5f46265 (patch) | |
tree | 89515bd86770b012b4c3665ee5795b82e51934a1 | |
parent | 7ef7e0a3a7a7718fe7148edd9693b201053907ef (diff) | |
download | polkit-71e3b425054e60c7f4592ba56b082cd2a5f46265.tar.gz |
add core polkit actions
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | actions/Makefile.am | 16 | ||||
-rw-r--r-- | actions/org.freedesktop.policykit.policy.in | 51 | ||||
-rw-r--r-- | configure.ac | 1 |
4 files changed, 69 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 66b86d7..fef10e3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS = data src docs po +SUBDIRS = actions data src docs po NULL = 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> diff --git a/configure.ac b/configure.ac index 1aaf600..cbd4a30 100644 --- a/configure.ac +++ b/configure.ac @@ -156,6 +156,7 @@ AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain]) AC_OUTPUT([ Makefile +actions/Makefile data/Makefile src/Makefile src/polkit/Makefile |