Public bug reported:

xfce4-session 4.12.1-3ubuntu1

xfce4-session determines which buttons to grey out on the logout dialogue box 
by calling
polkit_check_authorization_sync for the action org.freedesktop.login1.reboot 
etc.

However, if polkit policy permits these actions but denies
org.freedesktop.login1.reboot-multiple-sessions, and multiple users are
logged in, the restart button on the logout dialogue box will be enabled
even though the user isn't able to reboot the machine.

xfce4-session should instead use the CanReboot (etc.) methods on
systemd-logind, which will automatically correctly check the correct
polkit permissions.

I attach a patch to xfsm-systemd.c which works for me.

(S)

** Affects: xfce4-session (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "Patch to xfsm-systemd.c"
   
https://bugs.launchpad.net/bugs/1724196/+attachment/4973461/+files/use-systemd-canreboot-etc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1724196

Title:
  xfce4-session doesn't check for reboot correctly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1724196/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to