[systemd-commits] src/login

David Herrmann dvdhrm at kemper.freedesktop.org
Tue Oct 15 12:14:55 PDT 2013


 src/login/org.freedesktop.login1.conf |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

New commits:
commit d7d1c8f983599dca6ee30229375215978657c072
Author: David Herrmann <dh.herrmann at gmail.com>
Date:   Tue Oct 15 21:13:39 2013 +0200

    logind: allow unprivileged session-device access
    
    The session-device/control API was introduced for unprivileged device
    access from within a session. Add the required dbus policy to the default
    logind policies.
    
    Note: logind validates that only root and the user of a session can
    use the API. Furthermore, only a single API user gets access at a time.

diff --git a/src/login/org.freedesktop.login1.conf b/src/login/org.freedesktop.login1.conf
index 0407609..04e735e 100644
--- a/src/login/org.freedesktop.login1.conf
+++ b/src/login/org.freedesktop.login1.conf
@@ -148,6 +148,26 @@
                        send_interface="org.freedesktop.login1.Session"
                        send_member="SetIdleHint"/>
 
+                <allow send_destination="org.freedesktop.login1"
+                       send_interface="org.freedesktop.login1.Session"
+                       send_member="TakeControl"/>
+
+                <allow send_destination="org.freedesktop.login1"
+                       send_interface="org.freedesktop.login1.Session"
+                       send_member="ReleaseControl"/>
+
+                <allow send_destination="org.freedesktop.login1"
+                       send_interface="org.freedesktop.login1.Session"
+                       send_member="TakeDevice"/>
+
+                <allow send_destination="org.freedesktop.login1"
+                       send_interface="org.freedesktop.login1.Session"
+                       send_member="ReleaseDevice"/>
+
+                <allow send_destination="org.freedesktop.login1"
+                       send_interface="org.freedesktop.login1.Session"
+                       send_member="PauseDeviceComplete"/>
+
                 <allow receive_sender="org.freedesktop.login1"/>
         </policy>
 



More information about the systemd-commits mailing list