Package: libgksu
Version: 2.0.12-1

Hello,

I debugged a problem with 2.0.12 and Ubuntu this morning and it turns
out that using forkpty() for sudo is incompatible with the sudo
"tty_tickets" configuration (that is the default in Ubuntu). 

With that config a ticket is held for per tty. So after forkpty() the
pty is say 10 but the parent is still in 2. "sudo -v" works, but the
subsequent call of the command will fail because sudo only has a
ticket for pty 10 not for 2.

In Ubuntu, I uploaded a reverted libgksu.c for now but I would like to
hear your opinion. Initial I just removed the verifycmd to restore the
old behavior, but with that "sudo -k" in a terminal does not work
anymore because the ticket is on a different pty from where "sudo -k"
is run. And because there is no global "sudo -k-all" it meas that this
pty has a valid ticket until it expires (not ideal). 

My gut-feeling is that the forkpty() changes are not ideal and the old
pipe behavior should be restored, but maybe you have a good idea how
both can be kept?

Thanks,
 Michael



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to