[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 <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.com |ovo.novell.com | -- 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#c1 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Stefan Seyfried <seife@novell.slipkontur.de> 2012-11-19 10:17:55 CET --- After todays update to factory, this now works. -- 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#c2 Stefan Seyfried <seife@novell.slipkontur.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Version|12.3 Milestone 1 |12.3 Beta 1 Resolution|FIXED | --- Comment #2 from Stefan Seyfried <seife@novell.slipkontur.de> 2013-02-25 19:22:46 CET --- After today's update to Factory, this bug is back again: seife@susi:~> systemd-inhibit true Failed to issue method call: Access denied Failed to inhibit: Unknown error -1 But I can still list inhibitors: seife@susi:~> systemd-inhibit --list WHAT WHO WHY MODE UID PID sleep root inhibited delay 0 921 1 inhibitors listed. seife@susi:~> systemd-loginctl |cat 3 0 root seat0 4 10329 seife seat0 seife@susi:~> root is allowed to inhibit: susi:~ # systemd-inhibit true susi:~ # -- 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#c3 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@suse.com --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2013-02-26 10:57:05 UTC --- there has been polkit-default-privs update. Might be related ? -- 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#c4 --- Comment #4 from Marcus Meissner <meissner@suse.com> 2013-02-26 12:15:58 UTC --- yes, we reintroduced the permission handling. rpm -q --changelog polkit-default-privs|head its probably needs to be a bit more relaxed. (bug 783897 for the new systemd privileges) -- 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#c5 Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |security-team@suse.de --- Comment #5 from Marcus Meissner <meissner@suse.com> 2013-02-26 13:51:34 UTC --- Seife, can you briefly explain what systemd-inhibit actually does / the concept? It is a biot hard to understand for me -- 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#c6 --- Comment #6 from Frederic Crozat <fcrozat@suse.com> 2013-02-26 14:01:50 UTC --- Let me explain : systemd is now taking care of hibernate / suspend and respond to lid switch, detect if system is idle (to autosuspend, for instance) (through logind). This new API allows applications to inhibit suspend / hibernate (when you watch a movie or do an upgrade). It can either be used through D-Bus or through systemd-inhibit, for applications / desktop environment which haven't been yet ported to the new D-Bus interface. -- 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#c7 --- Comment #7 from Frederic Crozat <fcrozat@suse.com> 2013-02-26 14:02:40 UTC --- more info in man systemd-inhibit and http://www.freedesktop.org/wiki/Software/systemd/inhibit -- 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#c8 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |volker_voss_neuwied@hotmail | |.com --- Comment #8 from Guido Berhörster <gber@opensuse.org> 2013-02-26 23:16:52 UTC --- *** Bug 806348 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=806348 -- 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#c9 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@suse.de Severity|Major |Critical --- Comment #9 from Guido Berhörster <gber@opensuse.org> 2013-02-27 07:46:41 UTC --- @Ludwig/Marcus: Can you please push the fixed package to Factory and 12.3 ASAP, it is currently not possible to log into an Xfce desktop because of this bug. -- 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#c10 --- Comment #10 from Ludwig Nussel <lnussel@suse.com> 2013-02-27 08:55:33 CET --- 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. -- 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#c11 --- Comment #11 from Ludwig Nussel <lnussel@suse.com> 2013-02-27 11:57:04 CET --- 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 -- 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#c12 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gber@opensuse.org --- Comment #12 from Guido Berhörster <gber@opensuse.org> 2013-02-27 12:09:19 UTC --- (In reply to comment #10)
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 <lnussel@suse.com> 2013-02-27 13:19:05 CET --- 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. -- 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#c14 --- Comment #14 from Guido Berhörster <gber@opensuse.org> 2013-02-27 12:27:00 UTC --- (In reply to comment #13)
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 <koenig@linux.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |koenig@linux.de --- Comment #15 from Harald Koenig <koenig@linux.de> 2013-02-27 23:47:51 UTC --- *** Bug 806603 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=806603 -- 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#c16 --- Comment #16 from Harald Koenig <koenig@linux.de> 2013-02-27 23:55:05 UTC --- (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
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 <jsuchome@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jdd@dodin.org --- Comment #17 from Jiří Suchomel <jsuchome@suse.com> 2013-02-28 08:42:02 UTC --- *** Bug 804502 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=804502 -- 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#c18 --- Comment #18 from Harald Koenig <koenig@linux.de> 2013-03-01 11:04:52 UTC --- YFYI: with polkit-0.110-2.2.1.x86_64 update, XFCE4 works again, with existing /etc/polkit-1/rules.d/50-default-privs.rules thanks! -- 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#c19 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #19 from Stephan Kulow <coolo@suse.com> 2013-03-03 08:51:42 CET --- it's in 12.3 -- 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#c20 Guido Berhörster <gber@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jrswagswegie1996@aol.com --- Comment #20 from Guido Berhörster <gber@opensuse.org> 2013-03-07 09:42:13 UTC --- *** Bug 807174 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=807174 -- 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.
participants (1)
-
bugzilla_noreply@novell.com