Edward Tomasz Napierala 20e1174a00 Factor out resource limit enforcement code in the ELF loader.
It makes the code slightly easier to follow, and might make
it easier to fix the resouce accounting to also account for
the interpreter.

The PROC_UNLOCK() is moved earlier - I don't see anything
it should protect; the lim_max() is a wrapper around lim_rlimit(),
and that, differently from lim_rlimit_proc(), doesn't require
the proc lock to be held.

Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D19689
2019-03-26 15:35:49 +00:00
..
2019-03-24 14:51:17 +00:00
2019-03-24 15:08:30 +00:00
2019-03-24 14:51:17 +00:00
2019-02-21 01:30:37 +00:00
2019-03-25 07:48:52 +00:00
2019-02-04 21:28:25 +00:00