summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-11-02 21:18:07 +0000
committerps <ps@FreeBSD.org>2005-11-02 21:18:07 +0000
commite0951fe5041ade134381562a4cbf4bc0e2fb7219 (patch)
tree579fb2f2f747602f163048fe8fc4c723adbadd1a /sys/amd64
parent830d2103fbe6636ab7adf8d4fb308b9a383be46f (diff)
downloadFreeBSD-src-e0951fe5041ade134381562a4cbf4bc0e2fb7219.zip
FreeBSD-src-e0951fe5041ade134381562a4cbf4bc0e2fb7219.tar.gz
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
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/linux32/linux32_sysvec.c5
1 files changed, 2 insertions, 3 deletions
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 &&
OpenPOWER on IntegriCloud