[systemd-devel] [PATCH] logind: Allow PowerOff/Reboot in default context

Benjamin Franzke benjaminfranzke at googlemail.com
Thu Feb 9 15:56:44 PST 2012


---
 I'm not sure whether its intentional that those
 aren't enabled by default. If so, feel free to reject this :)

 src/login/org.freedesktop.login1.conf |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/login/org.freedesktop.login1.conf b/src/login/org.freedesktop.login1.conf
index 1774655..fbe4810 100644
--- a/src/login/org.freedesktop.login1.conf
+++ b/src/login/org.freedesktop.login1.conf
@@ -77,6 +77,14 @@
                        send_member="ActivateSessionOnSeat"/>
 
                 <allow send_destination="org.freedesktop.login1"
+                       send_interface="org.freedesktop.login1.Manager"
+                       send_member="PowerOff"/>
+
+                <allow send_destination="org.freedesktop.login1"
+                       send_interface="org.freedesktop.login1.Manager"
+                       send_member="Reboot"/>
+
+                <allow send_destination="org.freedesktop.login1"
                        send_interface="org.freedesktop.login1.Seat"
                        send_member="ActivateSession"/>
 
-- 
1.7.3.4



More information about the systemd-devel mailing list