Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 1998 20:29:02 -0500 (EST)
From:      Alfred Perlstein <bright@hotjobs.com>
To:        Nicholas Charles Brawn <ncb05@uow.edu.au>
Cc:        freebsd-security@FreeBSD.ORG
Subject:   Re: preventing fork bombs
Message-ID:  <Pine.BSF.3.96.980726202844.13348A-100000@bright.ny.otec.com>
In-Reply-To: <Pine.SOL.3.96.980726201812.20876A-100000@banshee.cs.uow.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
man login.conf

set limits there for login classes.

-Alfred

On Sun, 26 Jul 1998, Nicholas Charles Brawn wrote:

> How can someone limit/prevent fork bomb attacks on your system. I
> recently tried one on myself after modifying kern.maxprocperuid (thinking
> that should prevent it), and got my machine up to a load of over 150
> before I killed it.
> 
> The simple code used was:
> 
> #include <unistd.h>
> 
> main(void) {
> 	while(1) {
> 		fork();
> 	}
> }
> 
> The above effectively freezing my system. :\
> 
> Anyone got any ideas?
> 
> Nick
> 
> --
> Email: ncb05@uow.edu.au - http://rabble.uow.edu.au/~nick 
> Key fingerprint =  DE 30 33 D3 16 91 C8 8D  A7 F8 70 03 B7 77 1A 2A
> "When in doubt, ask someone wiser than yourself..." -unknown
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe security" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe security" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980726202844.13348A-100000>