aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2016-05-28 11:03:03 +0200
committerMike Gilbert <floppym@gentoo.org>2016-05-28 10:07:25 -0400
commit22c387b67328f28b1a49d024899906c690c456a5 (patch)
treee2d2be662506f86504d1587eb5954fa9b8a9798d
parentcore: fix missing newline when writing drop-in for WorkingDirectory (#3337) (diff)
downloadsystemd-gentoo-230.tar.gz
systemd-gentoo-230.tar.bz2
systemd-gentoo-230.zip
login: Fix policy for org.freedesktop.login1.set-self-linger (#3365) (#3373)gentoo-230
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
-rw-r--r--src/login/org.freedesktop.login1.policy.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/org.freedesktop.login1.policy.in b/src/login/org.freedesktop.login1.policy.in
index 1fa644162..66cbce393 100644
--- a/src/login/org.freedesktop.login1.policy.in
+++ b/src/login/org.freedesktop.login1.policy.in
@@ -116,6 +116,8 @@
<_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>