Re: [PATCH] allow execve'ing "/proc/self/exe" even if /proc is not mounted

From: Alan Cox
Date: Thu Jun 25 2009 - 04:09:42 EST


> 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

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