On 11/12/2003 7:14 AM, Marc Henry Galang wrote:
Has anyone here tried this code below on their linux machines?:
#!/usr/bin/perl
while(1){
malloc(100);
fork();
}
#results may vary
#this also works in C and sh
So far ive tried it on some distros that I have(redhat 7.3, mandrake 8,
mandrake 9.1, slackware 9, and storm), and it successfull kills the
machine if not hangs it. Ive tried countering it by limiting the user
processes count, the problem is, its too few that the user cannot start
kde and gnome.
Any suggestion on this?
this is a fork bomb this can be don with hard limit so they cant be
raised. ulimit is you friend here (e.g ulimit -hu xx, but check man
pages for shells in ur /etc/shells) which usually can be set in
/etc/profile. look also for the ff packages which might be of help:
lshell, shadow, grsecurity,etc
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie