Re: writing to kernel memory from a auth'ed program or other approachesto solving this prob?
- From: Kasper Dupont <kasperd@xxxxxxxxxxx>
- Date: Wed, 07 Dec 2005 23:45:40 +0100
Chris Markle wrote:
>
> Folks,
>
> We have a customer running RH Ent Linux 3 (2.4-kernel based). Our
> application runs as root and setuid's to a runtime user. Linux is not so
> inclined to generate a core dump for this type of app. We know about
> core-setuid-ok in /proc/sys/kernel, but that seems to not be working in
> this case to get core dumps. So we'd like to figure out how to get a
> core at this existing customer without doing things like shipping him
> new Linux or messy things of that ilk.
>
> One thought I had was why not figure out how to set the dumpable flag in
> the pid's task structure like prctl(PR_SET_DUMPABLE) would do. This has
> led me into a whole romp through Linux trying to figure out how to
> access kernel memory so I could set (obviously with a root program) this
> freakin' bit. So far I have not figured out how to do this.
>
> - Can one write to the kernel in Linux like you can do in Solaris with
> kvm_xxx() routines?
> - If one could, any ideas how I could find the address of the
> task_structure for an arbitrary pid?
> - Any other ideas of how I could do this?
>
> It would be nice if we could just write, test, and send the customer a
> program and just say "run this and we'll finally be able to get a core
> file"...
>
> Chris
I think this may help you:
http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html#suidcore
But you should also take a look on:
http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html#core
http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html#sigabrt
--
Kasper Dupont
Note to self: Don't try to allocate
256000 pages with GFP_KERNEL on x86.
.
- References:
- Prev by Date: writing to kernel memory from a auth'ed program or other approaches to solving this prob?
- Next by Date: Re: dynamic linker problem with libpthread.so.0?
- Previous by thread: writing to kernel memory from a auth'ed program or other approaches to solving this prob?
- Next by thread: PCF Mode
- Index(es):
Relevant Pages
|
|