[Xfce-bugs] [Bug 14722] Better shutdown fallback code for the BSDs
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Sat Apr 27 16:46:01 CEST 2019
https://bugzilla.xfce.org/show_bug.cgi?id=14722
--- Comment #19 from Landry Breuil <landry at xfce.org> ---
ok, first i looked and tried hard to understand the existing xfce4-session 4.12
code flow without patches, here on OpenBSD, and those are my findings:
- if :
- messagebus/systemwide dbus is running
- the session is launched within consolekit
- polkit is running
- but we're not in operator group
in the logout dialog, all actions are available.
- the shutdown code tries to go via consolekit_try_shutdown, but the default
consolekit rules on OpenBSD
(http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/sysutils/consolekit/files/10-openbsd-consolekit.rules?rev=1.2&content-type=text/x-cvsweb-markup)
require operator group to shutdown, or would ask for auth - i dont have a
polkit agent installed, so the ckit codepath fails, doesnt ask for a passwd
(apparently, even with mate-polkit installed it fails)
- the fallback code 'works' because the polkit rule installed by xfce4-session
in polkit-1/actions/org.xfce.session.policy allows the active session
(<allow_active>yes</allow_active>) to execute xfsm-shutdown-helper (via
consolekit, which runs as root) so a regular user (not in the operator group)
is allowed to shutdown/reboot.
now, to look again at that new fallback code....
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list