[Mageia-dev] forkbomb protection
luigiwalser at yahoo.com
Wed Nov 28 17:53:18 CET 2012
I saw an article this morning on LinuxToday that reminded me of the famous shell forkbomb that most of you are probably aware of (I became aware of it several years ago from someone's e-mail signature on a mailing list):
This also reminded me that we don't have protection against this out of the box in Mageia.
I checked on Fedora, and it turns out they do, as described here:
Their pam package has a /etc/security/limits.d/90-nproc.conf file that has:
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 1024
As the last comment on the bug says, it's a bit confusing that it's in limits.d/ and not the limits.conf file itself, and in fact I'm not sure what is responsible for processing limits.d/* as limits.conf says nothing about it (Fedora's is the exact same as ours). Anyway, one way or another it would be nice to have this limit set by default on Mageia, IMHO. WDYT?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mageia-dev