diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-07-15 01:52:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-07-15 01:53:11 +0200 |
commit | 55af3897854263eddc0818d5cc4614ccbdae7f32 (patch) | |
tree | 19c6c69cdf911073847b5a131ebb96002a80ab64 /src/org.freedesktop.login1.policy.in | |
parent | e5fcb8528668a93404d0106770e5baaa54f58365 (diff) |
logind: enable PowerOff/Reboot calls
Diffstat (limited to 'src/org.freedesktop.login1.policy.in')
-rw-r--r-- | src/org.freedesktop.login1.policy.in | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/src/org.freedesktop.login1.policy.in b/src/org.freedesktop.login1.policy.in index 9482c87f1f..adc904886d 100644 --- a/src/org.freedesktop.login1.policy.in +++ b/src/org.freedesktop.login1.policy.in @@ -38,7 +38,47 @@ <action id="org.freedesktop.login1.flush-devices"> <_description>Flush device to seat attachments</_description> - <_message>Authentication is required to allow reseting how devices are attached to seats</_message> + <_message>Authentication is required to allow resetting how devices are attached to seats</_message> + <defaults> + <allow_any>auth_admin_keep</allow_any> + <allow_inactive>auth_admin_keep</allow_inactive> + <allow_active>auth_admin_keep</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.login1.power-off"> + <_description>Power off the system</_description> + <_message>Authentication is required to allow powering off the system</_message> + <defaults> + <allow_any>auth_admin_keep</allow_any> + <allow_inactive>auth_admin_keep</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.login1.power-off-multiple-sessions"> + <_description>Power off the system when other users are logged in</_description> + <_message>Authentication is required to allow powering off the system while other users are logged in</_message> + <defaults> + <allow_any>auth_admin_keep</allow_any> + <allow_inactive>auth_admin_keep</allow_inactive> + <allow_active>auth_admin_keep</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.login1.reboot"> + <_description>Reboot the system</_description> + <_message>Authentication is required to allow rebooting the system</_message> + <defaults> + <allow_any>auth_admin_keep</allow_any> + <allow_inactive>auth_admin_keep</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.login1.reboot-multiple-sessions"> + <_description>Reboot the system when other users are logged in</_description> + <_message>Authentication is required to allow rebooting the system while other users are logged in</_message> <defaults> <allow_any>auth_admin_keep</allow_any> <allow_inactive>auth_admin_keep</allow_inactive> |