opnsense-src/lib/libutil
Konstantin Belousov 85a0ddfd0b Add a resource limit for the total number of kqueues available to the
user.  Kqueue now saves the ucred of the allocating thread, to
correctly decrement the counter on close.

Under some specific and not real-world use scenario for kqueue, it is
possible for the kqueues to consume memory proportional to the square
of the number of the filedescriptors available to the process.  Limit
allows administrator to prevent the abuse.

This is kernel-mode side of the change, with the user-mode enabling
commit following.

Reported and tested by:	pho
Discussed with:	jmg
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2013-10-21 16:46:12 +00:00
..
_secure_path.3
_secure_path.c
auth.c Finally nuke auth.conf, nine years after it was deprecated. The only 2012-06-12 17:02:53 +00:00
expand_number.3
expand_number.c The round of expand_number() cleanups. 2013-08-30 11:21:52 +00:00
flopen.3 Convert files to UTF-8 and add some copyright markers where missing. 2012-01-07 16:13:56 +00:00
flopen.c
fparseln.3
fparseln.c
gr_util.c commit correct tested fix for gr_util.c 2013-03-09 13:30:06 +00:00
hexdump.3
hexdump.c
humanize_number.3 don't assert on bad args, instead return an error.. 2013-10-07 22:22:57 +00:00
humanize_number.c don't assert on bad args, instead return an error.. 2013-10-07 22:22:57 +00:00
kinfo_getallproc.3 mdoc: sort prologue macros. 2012-03-26 19:23:57 +00:00
kinfo_getallproc.c
kinfo_getfile.3
kinfo_getfile.c
kinfo_getproc.3 Fixed documented prototype of kinfo_getproc(3). 2013-03-01 07:39:14 +00:00
kinfo_getproc.c
kinfo_getvmmap.3
kinfo_getvmmap.c
kld.3 Convert files to UTF-8 and add some copyright markers where missing. 2012-01-07 16:13:56 +00:00
kld.c
libutil.h Cleanup gr_add() so it does not leak mem 2013-03-07 19:00:00 +00:00
login.conf.5 Switch the default password hash from md5 to sha512. 2012-06-19 14:46:18 +00:00
login_auth.3
login_auth.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
login_cap.3 Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
login_cap.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
login_cap.h
login_class.3 Add a resource limit for the total number of kqueues available to the 2013-10-21 16:46:12 +00:00
login_class.c Add a resource limit for the total number of kqueues available to the 2013-10-21 16:46:12 +00:00
login_crypt.c
login_ok.3
login_ok.c
login_times.3
login_times.c Fix -Wunsequenced warning 2013-06-29 15:52:48 +00:00
login_tty.3
login_tty.c
Makefile Document the pw_util(3) functions 2012-10-30 22:18:08 +00:00
pidfile.3 Add a comment to the example that pidfile_* functions can handle pfh being NULL. 2012-02-08 08:49:30 +00:00
pidfile.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
property.3 Finally nuke auth.conf, nine years after it was deprecated. The only 2012-06-12 17:02:53 +00:00
property.c
pty.3
pty.c
pw_util.3 Fix typo 2012-11-03 00:30:22 +00:00
pw_util.c Add O_CLOEXEC to flopen 2012-12-27 20:24:44 +00:00
quotafile.3 Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
quotafile.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00
realhostname.3 Remove unnecessary includes from these libutil man pages. 2012-01-16 21:25:41 +00:00
realhostname.c
realhostname_sa.3
stub.c
trimdomain.3
trimdomain.c
uucplock.3
uucplock.c libutil: Use O_CLOEXEC for internal file descriptors from open(). 2013-08-28 21:10:37 +00:00