[Bug 789068] New: systemd-inhibit: permission denied
https://bugzilla.novell.com/show_bug.cgi?id=789068 https://bugzilla.novell.com/show_bug.cgi?id=789068#c0 Summary: systemd-inhibit: permission denied Classification: openSUSE Product: openSUSE Factory Version: 12.3 Milestone 1 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: seife@novell.slipkontur.de QAContact: qa-bugs@suse.de Found By: Third Party Developer/Partner Blocker: --- Trying to work around https://bugzilla.novell.com/show_bug.cgi?id=789057, I tried to use systemd-inhibit, but it does not work: seife@susi:~> systemd-inhibit --what="handle-lid-switch" sleep 100 Failed to issue method call: Access denied Failed to inhibit: Unknown error -1 So I can't even "fix" the non-broken xfce4-power-manager. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c1
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c2
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c3
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c4
--- Comment #4 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c5
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c6
--- Comment #6 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c7
--- Comment #7 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c8
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c9
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c10
--- Comment #10 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c11
--- Comment #11 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c12
Guido Berhörster
Well, if you cannot login because of that it's a bug in xfce. It must be prepared to receive a reply other than "yes" from polkit. Otherwise it doesn't make any sense to use polkit at all.
That's not possible because it doesn't use polkit directly, the xfce session wrapper script wraps the whole session with systemd-inhibit which isn't working any more in order to work around systemd's retarded handling of suspend/hibernate (see bnc#789057). I have a fix to get rid of this but it needs some more testing. (In reply to comment #11)
AFAICT not beeing able to log into xfce is unreated to polkit. To verify just rm /etc/polkit-1/rules.d/50-default-privs.rules
I'll triage later, however the polkit-default-privs from Base:System fixed the problem for me yesterday, ie. systemd-inhibit wasn't complaining about access denied any more. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c13
--- Comment #13 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c14
--- Comment #14 from Guido Berhörster
ah, now I get it. So what's missing is something like a --continue-anyways option to systemd-inhibit so it doesn't fail if it can't acquire the inhibit lock.
Yes, since it is a wrapper it is otherwise impossible to get right in a race-free way. However, this will soon be obsolete in the xfce session wrapper script but I don't know if it will be in time for 12.3 GA or afterwards in a maintenance update. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c15
Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c16
--- Comment #16 from Harald Koenig
AFAICT not beeing able to log into xfce is unreated to polkit. To verify just rm /etc/polkit-1/rules.d/50-default-privs.rules
ACK! now systemd-inhibit works, and xfce4 login is possible again... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c17
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c18
--- Comment #18 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c19
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=789068
https://bugzilla.novell.com/show_bug.cgi?id=789068#c20
Guido Berhörster
participants (1)
-
bugzilla_noreply@novell.com