Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2002 10:52:04 -0700
From:      "David G. Andersen" <danderse@cs.utah.edu>
To:        freebsd-security@freebsd.org
Subject:   File table exhaustion patch
Message-ID:  <20021121105204.B75421@cs.utah.edu>

next in thread | raw e-mail | index | archive | help
In PR 45353, I've submitted a patch to reserve a handfull of
file table entries for root-only use, to mitigate the effects
of user processes that leak file descriptors:

  http://www.freebsd.org/cgi/query-pr.cgi?pr=45353

Even with per-process file descriptor limits, it's pretty
easy for a buggy program that does any kind of forking to
run the system out of file table entries (or for a malicious
user to do so).  The patch above is trivial, and at least
enables root to login and fix things up a bit.  I've been
running it locally for about a week, and it's happy.

Is the form of the solution acceptable?  (And if so, anyone
interested in committing it to -current for a while? ;-)

  -Dave

-- 
work: dga@lcs.mit.edu                          me:  dga@pobox.com
      MIT Laboratory for Computer Science           http://www.angio.net/
      I do not accept unsolicited commercial email.  Do not spam me.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021121105204.B75421>