From cbc89bfbfe8e7f75bd743851f4890a1f1c58f4be Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Wed, 10 Oct 2001 23:06:54 +0000 Subject: Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader tunable. Reviewed by: peter MFC after: 2 weeks --- sys/compat/linux/linux_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 0d21eca80ddc..64b9782589f6 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -365,7 +365,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args) * XXX - this is not complete. it should check current usage PLUS * the resources needed by this library. */ - if (a_out->a_text > MAXTSIZ || + if (a_out->a_text > maxtsiz || a_out->a_data + bss_size > td->td_proc->p_rlimit[RLIMIT_DATA].rlim_cur) { error = ENOMEM; -- cgit v1.2.3