Webmaster <Nathan.Lewis@nixnet.qrp.com> wrote:
> Is there any reason /dev/zero should be readable by normal users, or
> is it safe to chmod it so that nobody pulls this stunt? Just
There is no reason why it should _not_ be readable. More, any user can
simulate /dev/zero by this one:
#include <unistd.h>
int main(int argc, char *argv[])
{
char b[1]={ 0 };
while (1) {
(void) write(1, &b, 1);
}
}
It's clearly the memory management that needs to be fixed.
olaf
-- ___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____ __ o <URL:http://www.inka.de/~bigred/> <IRC:praetorius> __/<_ >> Just as long as the wheels keep on turning round _)>(_)______________ I will live for the groove 'til the sun goes down << ____