On Sun, 2009-04-05 at 15:32 +0000, Luka wrote:
> steps to reproduce:
> 1. open gnome-terminal
> 2. type: su $USER
> 3. select "Restart..." in fast-user-switch-applet
> --> computer immediately restarts without confirmation dialogue
Okay, so what I'm guessing what happens is that the code to detect
whether we need a PolicyKit prompt looks at the number of sessions that
exist. It sees there are two, and then assumes that it's a multi-user
logout situation. The reality is that since their the same user,
PolicyKit assumes you know what you're doing to you, and allows it to be
a single user logout.
The change needed is to make the multi-user check function look to see
if they're all the same user name or not.
On Sun, 2009-04-05 at 15:32 +0000, Luka wrote: switch- applet
> steps to reproduce:
> 1. open gnome-terminal
> 2. type: su $USER
> 3. select "Restart..." in fast-user-
> --> computer immediately restarts without confirmation dialogue
Okay, so what I'm guessing what happens is that the code to detect
whether we need a PolicyKit prompt looks at the number of sessions that
exist. It sees there are two, and then assumes that it's a multi-user
logout situation. The reality is that since their the same user,
PolicyKit assumes you know what you're doing to you, and allows it to be
a single user logout.
The change needed is to make the multi-user check function look to see
if they're all the same user name or not.
Thanks!