> > I've used the code at the bottom of this message to isolate this > > bug. The summary is that when I compile the code as root, and then > > make it setuid (chmod u+s a.out) and then try to run it as a user, the > > tmpfile() fails. If I run it as root, it works fine. Conversely, I > > can give user ownership of the executable, and then run it as user, and > > it works great, but if fails for root. Again this is only with the > > setuid bit set. > > Probably your real and effective UID's aren't the same. Does your > SUID root program set the real UID from the effective UID?
Well, the code sample I submitted in my original email doesn't set any UID. It just creates a tmpfile() and then verifies that it succeeded. This is definitely a regression from 4.7 though. Running the same code on 4.7 succeeds, as it does on several other unix boxes. Anoop To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message