The best way to protect against starvation?

看板FB_security作者時間19年前 (2007/04/06 21:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
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顤an Hasse ---------------------------------------------------------------- G顤an Hasse email: gh@raditex.se Tel: 08-6949270 Raditex AB http://www.raditex.se Planiav輍en 15, 1tr Mob: 070-5530148 131 34 NACKA, SWEDEN OrgNr: 556240-0589 VAT: SE556240058901 ------------------------------------------------------------------ _______________________________________________ freebsd-security@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #165b9J00 (FB_security)
文章代碼(AID): #165b9J00 (FB_security)