Date: Wed, 29 Jul 1998 23:07:41 -0400 From: "Joe Gleason" <clash@tasam.com> To: <freebsd-security@FreeBSD.ORG> Subject: Re: preventing fork bombs Message-ID: <006101bdbb67$38d1c8a0$0171a1ce@bug.tasam.com>
next in thread | raw e-mail | index | archive | help
Last time I tried that on my shell server, it worked but not for things run from cron. So an especialy evil and crafy user could just run their fork bomb from cron. Joe Gleason Tasam >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 > 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?006101bdbb67$38d1c8a0$0171a1ce>