lkml.org 
[lkml]   [2009]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] allow execve'ing "/proc/self/exe" even if /proc is not mounted
From
On Fri, Jun 26, 2009 at 3:26 PM, Mike Frysinger<vapier.adi@gmail.com> wrote:
> On Fri, Jun 26, 2009 at 04:00, Denys Vlasenko wrote:
>> On Thu, Jun 25, 2009 at 10:10 AM, Alan Cox wrote:
>>>> With this patch, it is possible to execute /proc/self/exe
>>>> even if /proc is not mounted. In the below example,
>>>> ./sh is a static shell binary:
>>>
>>> What if the user has procfs mounted somewherelse, what if they are in a
>>> chroot where you don't want them to patch the binary and re-exec it ?
>>>
>>> It would be far far cleaner for NOMMU to have a NOMMU private "reexec()"
>>> call that didn't rely on procfs or hacking names into the kernel.
>>>
>>> So NAK
>>
>> I am ok with it. Are other people ok with adding a syscall
>> just for this purpose? Al?
>
> please try a custom binfmt first

I did not understand you.
--
vda


\
 
 \ /
  Last update: 2009-06-27 00:59    [W:0.086 / U:0.132 seconds]
©2003-2014 Jasper Spaans. Advertise on this site