[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] fork killer



Christopher Fowler wrote:

> What can keep someone from running this program and taking down linux
> box
> ---- cut here ----
> #include <unistd.h>
> main()
> {
>         int X=0;
>         do
>                 fork();
>         while ( X == 0 )
>         return 0;
> }
> ---------------------

I don't have enough experience with Linux, but I do know that in
SVR3/SVR4 you could limit the maximum number of processes per user via
kernel tunables.  Is this possible under Linux?

--
Until later: Geoffrey           geof at abraxis.com