diff options
author | Dan Williams <dcbw@redhat.com> | 2010-05-29 23:11:45 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-05-29 23:11:45 -0700 |
commit | 65818d517e386c03daca08db4be7b53aff94359a (patch) | |
tree | 83ab988f3c56d1e33e4dd6afa11b38d2a5e65bc7 /policy | |
parent | 1e69294204e201ac284e9547d8f41e4a41fbd494 (diff) |
core: PolicyKit-protect sleep/wake
Default to 'not allowed', distros that need backwards compatibility
can flip this to 'yes' if they need to. At this point, only power
management scripts should call these functions.
Diffstat (limited to 'policy')
-rw-r--r-- | policy/org.freedesktop.NetworkManager.policy.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/policy/org.freedesktop.NetworkManager.policy.in b/policy/org.freedesktop.NetworkManager.policy.in index fb8654c249..a912872491 100644 --- a/policy/org.freedesktop.NetworkManager.policy.in +++ b/policy/org.freedesktop.NetworkManager.policy.in @@ -18,6 +18,15 @@ </defaults> </action> + <action id="org.freedesktop.NetworkManager.sleep-wake"> + <_description>Put NetworkManager to sleep or wake it up (should only be used by system power management)</_description> + <_message>System policy prevents putting NetworkManager to sleep or waking it up</_message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>no</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> |