OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Bugtraq archives for 4th quarter (Oct-Dec) 1995: Re: fork()

Re: fork()

Diego Zamboni (diegoconga.super.unam.mx)
Tue, 12 Dec 1995 13:42:00 -0600

> 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
diegoconga.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 diegoconga.dgsca.unam.mx