[lkml]   [1996]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Path: not-for-mail
From: Olaf Titz <>
Subject: Re: Dumping /dev/zero to the console
Message-ID: <>
Date: 20 Jul 1996 19:37:59 +0200
References: <>
Organization: private Linux site, southern Germany
Lines: 24

Webmaster <> 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.

___ or @{stud,informatik} ____
__ o <URL:> <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.038 / U:1.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site