summaryrefslogtreecommitdiffstats
path: root/etc/login.conf
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-10-21 16:46:12 +0000
committerkib <kib@FreeBSD.org>2013-10-21 16:46:12 +0000
commit734382a525a0efc40130c452c5a765dc2249ad55 (patch)
tree04786befd82e74b0298aa6139cca4192ba215854 /etc/login.conf
parent80e669df9e8ddb312b35886be11c306ee738b4f1 (diff)
downloadFreeBSD-src-734382a525a0efc40130c452c5a765dc2249ad55.zip
FreeBSD-src-734382a525a0efc40130c452c5a765dc2249ad55.tar.gz
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
Diffstat (limited to 'etc/login.conf')
-rw-r--r--etc/login.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/login.conf b/etc/login.conf
index 67509f9..ff98d1c 100644
--- a/etc/login.conf
+++ b/etc/login.conf
@@ -42,6 +42,7 @@ default:\
:vmemoryuse=unlimited:\
:swapuse=unlimited:\
:pseudoterminals=unlimited:\
+ :kqueues=unlimited:\
:priority=0:\
:ignoretime@:\
:umask=022:
OpenPOWER on IntegriCloud