diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-18 01:16:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-18 01:16:23 +0200 |
commit | b14eda963c698aa89fac1d91501d572ec644cc2f (patch) | |
tree | cb2eb4a6ded34b0037018ae89886de41c69ce10b /src/login/org.freedesktop.login1.policy.in | |
parent | 178cc7700c23ac088cd7190d7854282075028d91 (diff) |
logind: split up inhibit acquire policy
Diffstat (limited to 'src/login/org.freedesktop.login1.policy.in')
-rw-r--r-- | src/login/org.freedesktop.login1.policy.in | 52 |
1 files changed, 46 insertions, 6 deletions
diff --git a/src/login/org.freedesktop.login1.policy.in b/src/login/org.freedesktop.login1.policy.in index 92c0a4d324..970adbeff2 100644 --- a/src/login/org.freedesktop.login1.policy.in +++ b/src/login/org.freedesktop.login1.policy.in @@ -16,9 +16,9 @@ <vendor>The systemd Project</vendor> <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> - <action id="org.freedesktop.login1.inhibit-block"> - <_description>Allow applications to inhibit system shutdown and suspend</_description> - <_message>Authentication is required to allow an application to inhibit system shutdown or suspend.</_message> + <action id="org.freedesktop.login1.inhibit-block-shutdown"> + <_description>Allow applications to inhibit system shutdown</_description> + <_message>Authentication is required to allow an application to inhibit system shutdown.</_message> <defaults> <allow_any>auth_admin_keep</allow_any> <allow_inactive>yes</allow_inactive> @@ -26,9 +26,49 @@ </defaults> </action> - <action id="org.freedesktop.login1.inhibit-delay"> - <_description>Allow applications to delay system shutdown and suspend</_description> - <_message>Authentication is required to allow an application to delay system shutdown or suspend.</_message> + <action id="org.freedesktop.login1.inhibit-block-sleep"> + <_description>Allow applications to inhibit system sleep</_description> + <_message>Authentication is required to allow an application to inhibit system sleep.</_message> + <defaults> + <allow_any>auth_admin_keep</allow_any> + <allow_inactive>yes</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.login1.inhibit-block-idle"> + <_description>Allow applications to inhibit automatic system suspend</_description> + <_message>Authentication is required to allow an application to inhibit automatic system suspend.</_message> + <defaults> + <allow_any>yes</allow_any> + <allow_inactive>yes</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.login1.inhibit-delay-shutdown"> + <_description>Allow applications to delay system shutdown</_description> + <_message>Authentication is required to allow an application to delay system shutdown.</_message> + <defaults> + <allow_any>yes</allow_any> + <allow_inactive>yes</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.login1.inhibit-delay-sleep"> + <_description>Allow applications to delay system sleep</_description> + <_message>Authentication is required to allow an application to delay system sleep.</_message> + <defaults> + <allow_any>yes</allow_any> + <allow_inactive>yes</allow_inactive> + <allow_active>yes</allow_active> + </defaults> + </action> + + <action id="org.freedesktop.login1.inhibit-delay-idle"> + <_description>Allow applications to delay automatic system suspend</_description> + <_message>Authentication is required to allow an application to delay automatic system suspend.</_message> <defaults> <allow_any>yes</allow_any> <allow_inactive>yes</allow_inactive> |