Re: Not a bible thumper. . .

Olaf Titz (olaf@bigred.inka.de)
Sat, 20 Jul 96 19:38 +0200


Newsgroups: linux.dev.kernel
Path: not-for-mail
From: Olaf Titz <olaf@bigred.inka.de>
Subject: Re: Dumping /dev/zero to the console
Message-ID: <duurne.ayk@bigred.inka.de>
Date: 20 Jul 1996 19:37:59 +0200
References: <199607182022.PAA10655@nixnet.qrp.com>
Organization: private Linux site, southern Germany
Lines: 24

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 << ____