Re: [RFC] status of execve() work - per-architecture patchessolicited

From: Al Viro
Date: Wed Sep 19 2012 - 09:32:20 EST


On Wed, Sep 19, 2012 at 05:50:34PM +0530, Vineet Gupta wrote:

> Hi Al,
>
> It must be noted that despite having seemingly independent
> __ARCH_WANT_(KERNEL|SYS)_EXECVE, arches which have a kernel syscall trap
> based kernel_execve(), e.g. MIPS, can't implement __ARCH_WANT_SYS_EXECVE
> alone - they need to first convert
> to __ARCH_WANT_KERNEL_EXECVE as well (although it probably doesn't make
> sense for anyone to just implement one - but in terms of staging -
> having only one, breaks stuff IMHO).

Of course - that's the reason for kernel_execve() being pulled into the
mix at all. Unified sys_execve() relies on not using a trap to do
kernel_execve(); it's not exactly the same thing as having it done
by generic instance in fs/exec.c (e.g. some architectures were already
doing it that way, with their own instances, some in asm glue, some
in C) but it is a prerequisite.
--
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/