summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/imgact_linux.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2001-10-10 23:06:54 +0000
committerps <ps@FreeBSD.org>2001-10-10 23:06:54 +0000
commitdb0d5cd641f1c95ac8f8c41ae9c79b92756fb2e2 (patch)
tree851a2b6bf1a0825cd12cca18ac56abe59123f449 /sys/i386/linux/imgact_linux.c
parent63fe581848b6f9a1e281df1b746662fd252d3eab (diff)
downloadFreeBSD-src-db0d5cd641f1c95ac8f8c41ae9c79b92756fb2e2.zip
FreeBSD-src-db0d5cd641f1c95ac8f8c41ae9c79b92756fb2e2.tar.gz
Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader
tunable. Reviewed by: peter MFC after: 2 weeks
Diffstat (limited to 'sys/i386/linux/imgact_linux.c')
-rw-r--r--sys/i386/linux/imgact_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/linux/imgact_linux.c b/sys/i386/linux/imgact_linux.c
index d86c62d..29741d93 100644
--- a/sys/i386/linux/imgact_linux.c
+++ b/sys/i386/linux/imgact_linux.c
@@ -106,7 +106,7 @@ exec_linux_imgact(imgp)
* text/data/bss must not exceed limits
*/
mtx_assert(&Giant, MA_OWNED);
- if (a_out->a_text > MAXTSIZ ||
+ if (a_out->a_text > maxtsiz ||
a_out->a_data + bss_size > imgp->proc->p_rlimit[RLIMIT_DATA].rlim_cur)
return (ENOMEM);
OpenPOWER on IntegriCloud