lkml.org 
[lkml]   [2003]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH]: non-readable binaries - binfmt_misc 2.6.0-test4
On Sun, Aug 31, 2003 at 11:58:40PM +0100, Alan Cox wrote:

> #3 The instant you pass control to the user space loader I can steal the
> handle via /proc
>
> #4 The instant you pass control to the user space loader I can take it
> over via ptrace
>
> #5 After you pass control I can core dump the app and recover the data
> using a signal
>
> 3, 4 and 5 require you make the userspace loader undumpable in the case
> where the fd being passed on is executable only. If you do this then it
> certainly fixes 4 (permission denied) and 5 (no dump) and I think it
> fixes #3

I confirm that it fixes #3 since I had a problem with /dev/fd/N not working
in my scripts, until I realized that it was because an exec only bash would
render /proc/self/fd/ unreadable.

Willy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.054 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site