The best way to protect against starvation?
G Hasse
gh at raditex.se
Fri Apr 6 13:56:31 UTC 2007
Hello,
If an ordinary user runs:
-- snip --
cat > starv.c <<EOF
main(){ char *point; while(1) { point = ( char * ) malloc(10000); }}
EOF
cc starv.c
while true
do
./a.out &
done
-- snip --
This will fast starv the operating system (FreeBSD 6.2). I have tried to
limit the number of processes and the amount of memmory consumed (in
login.conf).
There is also a file /etc/malloc.conf - but I don't understand if this
could help? Any advice?
--
Göran Hasse
----------------------------------------------------------------
Göran Hasse email: gh at raditex.se Tel: 08-6949270
Raditex AB http://www.raditex.se
Planiavägen 15, 1tr Mob: 070-5530148
131 34 NACKA, SWEDEN OrgNr: 556240-0589
VAT: SE556240058901
------------------------------------------------------------------
More information about the freebsd-security
mailing list