]> git.hungrycats.org Git - linux/commit
[PATCH] add sys_setaltroot()
authorSeth Rohit <rohit.seth@intel.com>
Mon, 18 Oct 2004 15:52:07 +0000 (08:52 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Oct 2004 15:52:07 +0000 (08:52 -0700)
commit44c4fb8925b008621aeb9e7758c4777d5a956a5c
tree8bd3fe9e54638ea0b4b2051e5948de58f5bf7560
parentf5aa089a8e593187ddefb90b1b9334c33c9cd1ae
[PATCH] add sys_setaltroot()

Add a new system call setaltroot(2).

Currently, using the altroot feature is accessible only via the
set_personality() system call.  It is accessible to user space only if there
is more than one exec domain in the system.  This patch allows using the
altroot feature on systems where there is only one exec domain.

It is possible to work around the issue by adding a dummy exec domain, but it
was rejected for not being very elegant.

If this feature is implemented in userspace, it adds a 16% overhead on a test
case which greps for a single word in the kernel source tree.

Signed-off-by: Zou Nanhai <nanhai.zou@intel.com>
Signed-off-by: Gordon Jin <gordon.jin@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/entry.S
arch/ia64/kernel/entry.S
fs/namei.c
include/asm-i386/unistd.h
include/asm-ia64/unistd.h
include/linux/syscalls.h