diff options
author | Dan Williams <dcbw@redhat.com> | 2010-05-28 18:23:00 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-05-28 18:23:00 -0700 |
commit | 716a9c6c0df95c18840c700a4320c81869b8b78d (patch) | |
tree | 7e166ae6f0d44476307afaab81a8b197f1b46511 /policy | |
parent | 6810ef1422ec873240520b4f0b6e626908bc320c (diff) | |
download | NetworkManager-716a9c6c0df95c18840c700a4320c81869b8b78d.tar.gz |
core: add permissions framework for various operations (rh #585182) (bgo #619323)
Diffstat (limited to 'policy')
-rw-r--r-- | policy/Makefile.am | 5 | ||||
-rw-r--r-- | policy/org.freedesktop.NetworkManager.policy.in | 49 |
2 files changed, 53 insertions, 1 deletions
diff --git a/policy/Makefile.am b/policy/Makefile.am index 409e8edda8..4778ce230a 100644 --- a/policy/Makefile.am +++ b/policy/Makefile.am @@ -1,6 +1,9 @@ polkit_policydir = $(datadir)/polkit-1/actions -dist_polkit_policy_in_files = org.freedesktop.network-manager-settings.system.policy.in +dist_polkit_policy_in_files = \ + org.freedesktop.network-manager-settings.system.policy.in \ + org.freedesktop.NetworkManager.policy.in + dist_polkit_policy_DATA = $(dist_polkit_policy_in_files:.policy.in=.policy) @INTLTOOL_POLICY_RULE@ diff --git a/policy/org.freedesktop.NetworkManager.policy.in b/policy/org.freedesktop.NetworkManager.policy.in new file mode 100644 index 0000000000..fb8654c249 --- /dev/null +++ b/policy/org.freedesktop.NetworkManager.policy.in @@ -0,0 +1,49 @@ +<?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.0/policyconfig.dtd"> + +<policyconfig> + + <vendor>NetworkManager</vendor> + <vendor_url>http://www.gnome.org/projects/NetworkManager</vendor_url> + <icon_name>nm-icon</icon_name> + + <action id="org.freedesktop.NetworkManager.enable-disable-network"> + <_description>Enable or disable system networking</_description> + <_message>System policy prevents enabling or disabling system networking</_message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.NetworkManager.enable-disable-wifi"> + <_description>Enable or disable WiFi devices</_description> + <_message>System policy prevents enabling or disabling WiFi devices</_message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.NetworkManager.enable-disable-wwan"> + <_description>Enable or disable mobile broadband devices</_description> + <_message>System policy prevents enabling or disabling mobile broadband devices</_message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.NetworkManager.use-user-connections"> + <_description>Allow use of user-specific connections</_description> + <_message>System policy prevents use of user-specific connections</_message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + +</policyconfig> + |