From 7b4d3039dfd2cbfa15127c29dcb557f314d13db1 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 4 Feb 2002 19:12:19 -0800 Subject: v2.4.6.8 -> v2.4.6.9 - Dan Quinlan: cramfs update - Ben Collins: IEEE 1394 update - David Miller: network update (pppoe, routing cache stats), sparc32 update - me: only dump core once per threaded app (first one wins) - me: use new completion handlers for block device requests (same race as with vfork, see -pre7) --- fs/exec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fs/exec.c') diff --git a/fs/exec.c b/fs/exec.c index 3e143bc2ac10..012b1a02319a 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -548,7 +548,7 @@ int flush_old_exec(struct linux_binprm * bprm) current->sas_ss_sp = current->sas_ss_size = 0; if (current->euid == current->uid && current->egid == current->gid) - current->dumpable = 1; + current->mm->dumpable = 1; name = bprm->filename; for (i=0; (ch = *(name++)) != '\0';) { if (ch == '/') @@ -565,7 +565,7 @@ int flush_old_exec(struct linux_binprm * bprm) if (bprm->e_uid != current->euid || bprm->e_gid != current->egid || permission(bprm->file->f_dentry->d_inode,MAY_READ)) - current->dumpable = 0; + current->mm->dumpable = 0; /* An exec changes our domain. We are no longer part of the thread group */ @@ -683,7 +683,7 @@ void compute_creds(struct linux_binprm *bprm) if (bprm->e_uid != current->uid || bprm->e_gid != current->gid || !cap_issubset(new_permitted, current->cap_permitted)) { - current->dumpable = 0; + current->mm->dumpable = 0; lock_kernel(); if (must_not_trace_exec(current) @@ -933,9 +933,9 @@ int do_coredump(long signr, struct pt_regs * regs) binfmt = current->binfmt; if (!binfmt || !binfmt->core_dump) goto fail; - if (!current->dumpable) + if (!current->mm->dumpable) goto fail; - current->dumpable = 0; + current->mm->dumpable = 0; if (current->rlim[RLIMIT_CORE].rlim_cur < binfmt->min_coredump) goto fail; -- cgit v1.2.3