[2453] in bugtraq
Re: fork()
daemon@ATHENA.MIT.EDU (Diego Zamboni)
Wed Dec 13 23:56:49 1995
Date: Tue, 12 Dec 1995 13:42:00 -0600
Reply-To: Bugtraq List <BUGTRAQ@CRIMELAB.COM>
From: Diego Zamboni <diego@conga.super.unam.mx>
X-To: Bugtraq List <BUGTRAQ@CRIMELAB.COM>
To: Multiple recipients of list BUGTRAQ <BUGTRAQ@CRIMELAB.COM>
> main() {
> int x;
> while(x=0;x<1000000;x++)
> {
> system("uptime");
> fork();
> }
> }
>
> Gcc it, run it and whatever system your on will crash. Is
> their any way to stop users from doing this? I.e. restricting
> number of process that can run?
In Ultrix, you can edit the maxuprc parameter in the kernel
configuration file (/sys/conf/mips/<SYSNAME> or something like that)
to limit the number of processes that can be run simultaneously by
any single user. You have to rebuild the kernel after that, of
course.
Regards.
---
Diego Martin Zamboni Area de Seguridad en C'omputo
diego@conga.dgsca.unam.mx DGSCA, UNAM, Mexico. Tel. (52-5)622-85-29
(NeXTMail ok) Fax. (52-5)622-80-43
WWW home page: http://ds5000.dgsca.unam.mx/~diego/
PGP key: finger diego@conga.dgsca.unam.mx