From d889a2069a87e4617b32ddbdeace5a53a12c699d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 8 May 2012 19:02:25 +0200 Subject: logind: implement suspend/hibernate calls with inhibition logic --- src/login/org.freedesktop.login1.policy.in | 84 +++++++++++++++++++++++++----- 1 file changed, 72 insertions(+), 12 deletions(-) (limited to 'src/login/org.freedesktop.login1.policy.in') diff --git a/src/login/org.freedesktop.login1.policy.in b/src/login/org.freedesktop.login1.policy.in index 76ed2bea38..8422645b80 100644 --- a/src/login/org.freedesktop.login1.policy.in +++ b/src/login/org.freedesktop.login1.policy.in @@ -48,7 +48,7 @@ <_description>Allow attaching devices to seats - <_message>Authentication is required to allow attaching a device to a seat. + <_message>Authentication is required for attaching a device to a seat. auth_admin_keep auth_admin_keep @@ -58,7 +58,7 @@ <_description>Flush device to seat attachments - <_message>Authentication is required to allow resetting how devices are attached to seats. + <_message>Authentication is required for resetting how devices are attached to seats. auth_admin_keep auth_admin_keep @@ -68,7 +68,7 @@ <_description>Power off the system - <_message>Authentication is required to allow powering off the system. + <_message>Authentication is required for powering off the system. auth_admin_keep auth_admin_keep @@ -77,8 +77,8 @@ - <_description>Power off the system when other users are logged in - <_message>Authentication is required to allow powering off the system while other users are logged in. + <_description>Power off the system while other users are logged in + <_message>Authentication is required for powering off the system while other users are logged in. auth_admin_keep auth_admin_keep @@ -87,8 +87,8 @@ - <_description>Power off the system when an application asked to inhibit it - <_message>Authentication is required to allow powering off the system while an application asked to inhibit it. + <_description>Power off the system while an application asked to inhibit it + <_message>Authentication is required for powering off the system while an application asked to inhibit it. auth_admin_keep auth_admin_keep @@ -98,7 +98,7 @@ <_description>Reboot the system - <_message>Authentication is required to allow rebooting the system. + <_message>Authentication is required for rebooting the system. auth_admin_keep auth_admin_keep @@ -107,8 +107,8 @@ - <_description>Reboot the system when other users are logged in - <_message>Authentication is required to allow rebooting the system while other users are logged in. + <_description>Reboot the system while other users are logged in + <_message>Authentication is required for rebooting the system while other users are logged in. auth_admin_keep auth_admin_keep @@ -117,8 +117,68 @@ - <_description>Reboot the system when an application asked to inhibit it - <_message>Authentication is required to allow rebooting the system while an application asked to inhibit it. + <_description>Reboot the system while an application asked to inhibit it + <_message>Authentication is required for rebooting the system while an application asked to inhibit it. + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + <_description>Suspend the system + <_message>Authentication is required for suspending the system. + + auth_admin_keep + auth_admin_keep + yes + + + + + <_description>Suspend the system while other users are logged in + <_message>Authentication is required for suspending the system while other users are logged in. + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + <_description>Suspend the system while an application asked to inhibit it + <_message>Authentication is required for suspending the system while an application asked to inhibit it. + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + <_description>Hibernate the system + <_message>Authentication is required for hibernating the system. + + auth_admin_keep + auth_admin_keep + yes + + + + + <_description>Hibernate the system while other users are logged in + <_message>Authentication is required for hibernating the system while other users are logged in. + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + <_description>Hibernate the system while an application asked to inhibit it + <_message>Authentication is required for hibernating the system while an application asked to inhibit it. auth_admin_keep auth_admin_keep -- cgit v1.2.3-54-g00ecf