summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2016-05-28 11:03:03 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-28 11:03:03 +0200
commitac3608cdbc28a14acd4c087ca6cd80d396f15eec (patch)
tree40536e71a9bd2d56d8a12ccdb7eded71134d19d7
parentda4d897e75e574911cb73ac91fdeef7d4fce8fbe (diff)
login: Fix policy for org.freedesktop.login1.set-self-linger (#3365) (#3373)
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 1fa6441629..66cbce393c 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>