Date: Mon, 22 Aug 2011 21:07:54 +0400 From: Solar Designer <solar@...nwall.com> To: musl@...ts.openwall.com Subject: fd 0-2 on SUID/SGID program startup 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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.