]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
committerLennart Poettering <lennart@poettering.net>
Sat, 28 May 2016 09:03:03 +0000 (11:03 +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 1fa64416294ce194331c2d46638ce028f599db5f..66cbce393ce12991763bfc9894032052837b5142 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>