lkml.org 
[lkml]   [1996]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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 << ____


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.027 / U:4.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site