It seems like this wan't an error in the handling of the setuid bit
after all. It seems like the EUID is reset to UID after getpwnam is
called. Attaching a simple test program. Compile and change the owner to
root and set the setuid bit.

Expected output:
EUID0: 0, EUID1: 0

On systems with broken LDAP support (EUID1 will be set to the UID of the 
process):
EUID0: 0, EUID1: 1000


** Attachment added: "getpwnam_xid_test.c"
   http://launchpadlibrarian.net/43116436/getpwnam_xid_test.c

-- 
NSS using LDAP on Karmic breaks 'su' and 'sudo'
https://bugs.launchpad.net/bugs/423252
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to