Nonsense. The kernel only uses the effective uid and gid in most cases.
Why do you think it is called "effective" ?
>Certainly `cp` never attempted to obtain root privilege so the suid-root
>bit set in its parent's file should have done nothing.
Yes, well, welcome to Unix.
>Also, I think I have read (recently) that, for a program to function
>suid-root, it must be owned by root and exist in a root-owned directory.
>This does not seem to be in current implementation, I can make a suid-root
>program, put it in a directory owned by 200.200, and it still shows
>the EUID as 0.
Yes well ofcourse. Think hardlinks. Welcome to Unix, once again ;)
Mike.
-- Living is a horizontal fall.-- The From: and Reply-To: addresses are internal news2mail gateway addresses. Reply to the list or to miquels@cistron.nl (Miquel van Smoorenburg)- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/