mailing list of musl libc
 help / color / mirror / code / Atom feed
* fd 0-2 on SUID/SGID program startup
@ 2011-08-22 17:07 Solar Designer
  2011-08-22 18:32 ` Rich Felker
  2011-08-25 22:54 ` Rich Felker
  0 siblings, 2 replies; 3+ messages in thread
From: Solar Designer @ 2011-08-22 17:07 UTC (permalink / raw)
  To: musl

Rich,

As you're probably aware, glibc makes sure that fd 0-2 are open on
SUID/SGID program startup (opening them to /dev/null / /dev/full if
they're not already open).  This is needed to prevent misdirected
reads/writes by programs that use those well-known fd's (in fact, even
libc itself does) yet also open other files/sockets/whatever (so it may
get opened on one of these special fd's if they're not already taken).

I think musl must have the same countermeasure.  I think it lacks it
currently.

Do you agree?

Alexander


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-25 22:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-22 17:07 fd 0-2 on SUID/SGID program startup Solar Designer
2011-08-22 18:32 ` Rich Felker
2011-08-25 22:54 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).