diff options
author | silby <silby@FreeBSD.org> | 2002-02-19 03:15:28 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2002-02-19 03:15:28 +0000 |
commit | e561ca6dce9bfce4a370c4046c20f4332d55fe5c (patch) | |
tree | 44883e81ed61ee6f1cc358fe804a3d3fe41470db /sys/kern/kern_mutex.c | |
parent | 53507926a42033a398cb6f8e44dd99d68aafab0f (diff) | |
download | FreeBSD-src-e561ca6dce9bfce4a370c4046c20f4332d55fe5c.zip FreeBSD-src-e561ca6dce9bfce4a370c4046c20f4332d55fe5c.tar.gz |
A few misc forkbomb defenses:
- Leave 10 processes for root-only use, the previous
value of 1 was insufficient to run ps ax | more.
- Remove the printing of "proc: table full". When the table
really is full, this would flood the screen/logs, making
the problem tougher to deal with.
- Force any process trying to fork beyond its user's maximum
number of processes to sleep for .5 seconds before returning
failure. This turns 2000 rampaging fork monsters into 2000
harmlessly snoozing fork monsters.
Reviewed by: dillon, peter
MFC after: 1 week
Diffstat (limited to 'sys/kern/kern_mutex.c')
0 files changed, 0 insertions, 0 deletions