From e0951fe5041ade134381562a4cbf4bc0e2fb7219 Mon Sep 17 00:00:00 2001 From: ps Date: Wed, 2 Nov 2005 21:18:07 +0000 Subject: Calling setrlimit from 32bit apps could potentially increase certain limits beyond what should be capiable in a 32bit process, so we must fixup the limits. Reviewed by: jhb --- sys/amd64/linux32/linux32_sysvec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/amd64') diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index 5cac383..d1b1eed 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -123,7 +123,7 @@ static void linux_prepsyscall(struct trapframe *tf, int *args, u_int *code, static void linux_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask); static void exec_linux_setregs(struct thread *td, u_long entry, u_long stack, u_long ps_strings); -static void linux32_fixlimits(struct image_params *imgp); +static void linux32_fixlimits(struct proc *p); /* * Linux syscalls return negative errno's, we do positive and map them @@ -955,9 +955,8 @@ SYSCTL_ULONG(_compat_linux32, OID_AUTO, maxvmem, CTLFLAG_RW, * XXX copied from ia32_sysvec.c. */ static void -linux32_fixlimits(struct image_params *imgp) +linux32_fixlimits(struct proc *p) { - struct proc *p = imgp->proc; struct plimit *oldlim, *newlim; if (linux32_maxdsiz == 0 && linux32_maxssiz == 0 && -- cgit v1.1