chiark / gitweb /
login: Fix policy for org.freedesktop.login1.set-self-linger (#3365) (#3373)
authorMichael Biebl <mbiebl@gmail.com>
Sat, 28 May 2016 09:03:03 +0000 (11:03 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:59 +0000 (10:12 +0200)
We need to explicitly define authorizations for allow_inactive and
allow_active. Otherwise one is getting "Access denied" when run from a
local console:

$ loginctl enable-linger
Could not enable linger: Access denied

src/login/org.freedesktop.login1.policy.in

index 4369577..8e4af1a 100644 (file)
                 <_message>Explicit request is required to run programs as a non-logged-in user.</_message>
                 <defaults>
                         <allow_any>yes</allow_any>
+                        <allow_inactive>yes</allow_inactive>
+                        <allow_active>yes</allow_active>
                 </defaults>
         </action>