lkml.org 
[lkml]   [1999]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: strace security <feature>
Date
In article <cistron.Pine.LNX.3.95.991230092414.766A-100000@chaos.analogic.com>,
Richard B. Johnson <root@chaos.analogic.com> wrote:
>Further, the suid bit only sets the EUID during exec, not UID and GID.
>Previously a privileged program would have to specifically set its UID
>and GID to obtain privilege. In other words, EUID was only checked on
>setuid()/setgid() calls. The call would fail if the EUID was not 0.
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [from the cache]
©2003-2011 Jasper Spaans