RLIMIT_FORK
Andre Nathan
andre at digirati.com.br
Thu May 27 05:32:27 PDT 2004
Hello
The patch set at [1] adds a new rlimit constant, RLIMIT_FORK, which can
be used to limit the depth of the process tree having the process where
setrlimit() was called as its root.
The motivation for this patch is described at [2] but in a few words,
the idea is to avoid evil custormers forking their perl/php scripts on a
webhosting environment.
The patch set also includes changes to sh, csh and login, so that this
programs can use the new resource limit (via ulimit, limit or
login.conf, respectively), as well as man page changes.
Do you guys think this would be a nice feature to have on DragonFly?
Best regards,
Andre
[1]http://andre.people.digirati.com.br/bsd/dragonfly/patches/forkdepth/
[2]http://oss.digirati.com.br/fkdepth/
More information about the Submit
mailing list