diff options
author | Richard Hughes <richard@hughsie.com> | 2009-06-16 17:36:23 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2009-06-16 17:36:23 +0100 |
commit | 1f136db0d0dab937c449ead795802ab84e731d34 (patch) | |
tree | 549f7447fb80978bda75b58fbfddee42b3d785cf /policy | |
parent | ad387b212aa8da94df3693359512549ac756ce8e (diff) |
Port to polkit1, and remove a lot of the complexity from the old PolicyKit code
Diffstat (limited to 'policy')
-rw-r--r-- | policy/.gitignore | 2 | ||||
-rw-r--r-- | policy/Makefile.am | 7 | ||||
-rw-r--r-- | policy/org.freedesktop.packagekit.policy.in | 25 |
3 files changed, 20 insertions, 14 deletions
diff --git a/policy/.gitignore b/policy/.gitignore index 171e26041..c04f1d1bc 100644 --- a/policy/.gitignore +++ b/policy/.gitignore @@ -4,5 +4,5 @@ Makefile Makefile.in *.o *~ -org.freedesktop.packagekit.policy +*.policy diff --git a/policy/Makefile.am b/policy/Makefile.am index 9fcdc91bf..9f0ab3c1d 100644 --- a/policy/Makefile.am +++ b/policy/Makefile.am @@ -1,7 +1,7 @@ NULL = -polkit_policydir = $(datadir)/PolicyKit/policy +polkit_policydir = $(datadir)/polkit-1/actions dist_polkit_policy_DATA = \ org.freedesktop.packagekit.policy \ $(NULL) @@ -10,11 +10,6 @@ dist_polkit_policy_DATA = \ # http://bugzilla.gnome.org/show_bug.cgi?id=462312 @INTLTOOL_POLICY_RULE@ -if SECURITY_TYPE_POLKIT -check: - $(POLKIT_POLICY_FILE_VALIDATE) $(top_srcdir)/policy/$(dist_polkit_policy_DATA) -endif - EXTRA_DIST = org.freedesktop.packagekit.policy.in DISTCLEANFILES = org.freedesktop.packagekit.policy diff --git a/policy/org.freedesktop.packagekit.policy.in b/policy/org.freedesktop.packagekit.policy.in index b12b8ab42..98bf5f3ca 100644 --- a/policy/org.freedesktop.packagekit.policy.in +++ b/policy/org.freedesktop.packagekit.policy.in @@ -6,7 +6,7 @@ <!-- Policy definitions for PackageKit system actions. - Copyright (c) 2007-2008 Richard Hughes <richard@hughsie.com> + Copyright (c) 2007-2009 Richard Hughes <richard@hughsie.com> --> <vendor>The PackageKit Project</vendor> @@ -18,8 +18,9 @@ <_message>Authentication is required to cancel a task that was not started by yourself</_message> <icon_name>pk-package-delete</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> - <allow_active>auth_admin_keep_always</allow_active> + <allow_active>auth_admin_keep</allow_active> </defaults> </action> @@ -28,8 +29,9 @@ <_message>Authentication is required to install a signed package</_message> <icon_name>pk-package-add</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> - <allow_active>auth_admin_keep_always</allow_active> + <allow_active>yes</allow_active> </defaults> </action> @@ -38,6 +40,7 @@ <_message>Authentication is required to install an untrusted package</_message> <icon_name>pk-package-add</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> <allow_active>auth_admin</allow_active> </defaults> @@ -48,6 +51,7 @@ <_message>Authentication is required to consider a key used for signing packages as trusted</_message> <icon_name>pk-package-add</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> <allow_active>auth_admin</allow_active> </defaults> @@ -58,6 +62,7 @@ <_message>Authentication is required to accept a EULA</_message> <icon_name>pk-package-add</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> @@ -68,8 +73,9 @@ <_message>Authentication is required to remove packages</_message> <icon_name>pk-package-delete</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> - <allow_active>auth_admin_keep_always</allow_active> + <allow_active>auth_admin_keep</allow_active> </defaults> </action> @@ -78,8 +84,9 @@ <_message>Authentication is required to update packages</_message> <icon_name>pk-package-update</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> - <allow_active>auth_admin_keep_always</allow_active> + <allow_active>yes</allow_active> </defaults> </action> @@ -88,8 +95,9 @@ <_message>Authentication is required to rollback a transaction</_message> <icon_name>pk-rollback</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> - <allow_active>auth_admin_keep_always</allow_active> + <allow_active>auth_admin</allow_active> </defaults> </action> @@ -98,8 +106,9 @@ <_message>Authentication is required to change software source parameters</_message> <icon_name>pk-package-info</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> - <allow_active>auth_admin_keep_always</allow_active> + <allow_active>auth_admin_keep</allow_active> </defaults> </action> @@ -108,6 +117,7 @@ <_message>Authentication is required to refresh the system sources</_message> <icon_name>pk-refresh-cache</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> @@ -118,6 +128,7 @@ <_message>Authentication is required to set the network proxy used for downloading packages</_message> <icon_name>applications-internet</icon_name> <defaults> + <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> |