diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-12-25 11:36:37 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-12-31 21:24:26 +0100 |
commit | 3960015566b506b234596a4f726cb47fb9a0da51 (patch) | |
tree | ff4dd7dbb70fdd5b17a408ac5435b85e50fe2955 /src/login/org.freedesktop.login1.policy.in | |
parent | 94f5bbc626f2a4102debd9b17c964170a887cb49 (diff) |
polkit: add "imply" rules to a number of polkit actions
Diffstat (limited to 'src/login/org.freedesktop.login1.policy.in')
-rw-r--r-- | src/login/org.freedesktop.login1.policy.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/login/org.freedesktop.login1.policy.in b/src/login/org.freedesktop.login1.policy.in index 57dfb2a8b6..b5f5db4f6a 100644 --- a/src/login/org.freedesktop.login1.policy.in +++ b/src/login/org.freedesktop.login1.policy.in @@ -24,6 +24,7 @@ <allow_inactive>yes</allow_inactive> <allow_active>yes</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-delay-shutdown org.freedesktop.login1.inhibit-block-sleep org.freedesktop.login1.inhibit-delay-sleep org.freedesktop.login1.inhibit-block-idle</annotate> </action> <action id="org.freedesktop.login1.inhibit-delay-shutdown"> @@ -34,6 +35,7 @@ <allow_inactive>yes</allow_inactive> <allow_active>yes</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-delay-sleep</annotate> </action> <action id="org.freedesktop.login1.inhibit-block-sleep"> @@ -44,6 +46,7 @@ <allow_inactive>yes</allow_inactive> <allow_active>yes</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-delay-sleep org.freedesktop.login1.inhibit-block-idle</annotate> </action> <action id="org.freedesktop.login1.inhibit-delay-sleep"> @@ -74,6 +77,7 @@ <allow_inactive>yes</allow_inactive> <allow_active>yes</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-handle-suspend-key org.freedesktop.login1.inhibit-handle-hibernate-key org.freedesktop.login1.inhibit-handle-lid-switch</annotate> </action> <action id="org.freedesktop.login1.inhibit-handle-suspend-key"> @@ -84,6 +88,7 @@ <allow_inactive>yes</allow_inactive> <allow_active>yes</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-handle-hibernate-key org.freedesktop.login1.inhibit-handle-lid-switch</annotate> </action> <action id="org.freedesktop.login1.inhibit-handle-hibernate-key"> @@ -124,6 +129,7 @@ <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.flush-devices</annotate> </action> <action id="org.freedesktop.login1.flush-devices"> @@ -154,6 +160,7 @@ <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.power-off</annotate> </action> <action id="org.freedesktop.login1.power-off-ignore-inhibit"> @@ -164,6 +171,7 @@ <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.power-off</annotate> </action> <action id="org.freedesktop.login1.reboot"> @@ -184,6 +192,7 @@ <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.reboot</annotate> </action> <action id="org.freedesktop.login1.reboot-ignore-inhibit"> @@ -194,6 +203,7 @@ <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.reboot</annotate> </action> <action id="org.freedesktop.login1.suspend"> @@ -214,6 +224,7 @@ <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>yes</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.suspend</annotate> </action> <action id="org.freedesktop.login1.suspend-ignore-inhibit"> @@ -224,6 +235,7 @@ <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.suspend</annotate> </action> <action id="org.freedesktop.login1.hibernate"> @@ -244,6 +256,7 @@ <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.hibernate</annotate> </action> <action id="org.freedesktop.login1.hibernate-ignore-inhibit"> @@ -254,6 +267,7 @@ <allow_inactive>auth_admin_keep</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> + <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.hibernate</annotate> </action> </policyconfig> |