Linux-kernel mailing list archive 1998-31,: Re: core dumps when uid has been changed since exec

# Re: core dumps when uid has been changed since exec

Zachary Amsden (amsdenz@aavid.com)
Tue, 4 Aug 1998 13:39:35 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Alexander Kjeldaas: "Re: TCP/IP Routing by user id?"
- Previous message: Alan Cox: "Re: [PATCH] [SECURITY] suid procs exec'd with bad 0,1,2 fds"
- Maybe in reply to: Chris Wedgwood: "core dumps when uid has been changed since exec"

-----Original Message-----
From: Alexander Kjeldaas <astor@guardian.no>
To: Chris Wedgwood <chris@cybernet.co.nz>; linux-kernel
<linux-kernel@vger.rutgers.edu>
Date: Tuesday, August 04, 1998 11:53 AM
Subject: Re: core dumps when uid has been changed since exec

>On Tue, Aug 04, 1998 at 05:06:23PM +1200, Chris Wedgwood wrote:
>> Can anyone point me at the code which checks and then refuses to dump
>> core when the uid has changed since the last time execve was called?

--snip--
>Check kernel/sys.c in the set*id functions.

Whenever core dumps should not happen, the flag current->dumpable
is set to 0. This is done in many places. The code you are interested
in is in either fs/exec.c or kernel/sys.c or both

Zachary Amsden
amsden@andrew.cmu.edu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

- Next message: Alexander Kjeldaas: "Re: TCP/IP Routing by user id?"
- Previous message: Alan Cox: "Re: [PATCH] [SECURITY] suid procs exec'd with bad 0,1,2 fds"
- Maybe in reply to: Chris Wedgwood: "core dumps when uid has been changed since exec"