lkml.org 
[lkml]   [1998]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: High UID support for Linux
Date
From
In message <7446vb$g5g$1@palladium.transmeta.com>, H. Peter Anvin writes:
+-----
| Then your customer's program is buggy, unless it intends to refer to
| the HOME and USER of the *user who started the setuid program*.
+--->8

Setuid programs should not trust environment variables, as a general
security principle. getpwuid(getuid())->pw_dir is not unreasonable as an
alternative.

--
brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net
system administrator [WAY too many hats] allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering KF8NH
Kiss my bits, Billy-boy.



-
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:45    [W:0.046 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site