i just read an article about forkbombing... debian passed the test, but other distros didn't...
Quote:
I'll quickly mention here that Debian did not suffer the same fate as the others; congrats to the Debian development team.
|
http://www.securityfocus.com/columnists/308
i'd like to know what (configuration) steps debian takes to have this great behaviour by default, and how the equivalent can be accomplished on other distros (in my case slackware)...
the following script (forkbomb.sh) will take-down my slackware box when run as a non-root user:
Code:
#!/bin/bash
while true; do
./forkbomb.sh &
done
if i do (as the non-root user) something like a "
ulimit -u 128" (slackware's default seems to be 2048) before executing the script then the impact is not so high and my box won't go down, but i'd like to know how root can apply a system-wide limit (that can't be changed by non-root users) in the same manner debian does (according to the article)...
any input would be greatly appreciated...
=)