On Sep 26 2007 00:40, David Newall wrote:So what? Just do this: chdir into the root after chroot. It won't conform to SVR4/4.4BSD anymore, but hey, let Linux set some sane standard ain't bad either. I doubt anyone really relies on the fact that after chroot, your cwd might be outside the root. Signed-off-by: Jan Engelhardt <jengelh@gmx.de> --- fs/open.c | 1 + 1 file changed, 1 insertion(+) Index: linux-2.6.23/fs/open.c =================================================================== --- linux-2.6.23.orig/fs/open.c +++ linux-2.6.23/fs/open.c @@ -547,6 +547,7 @@ asmlinkage long sys_chroot(const char __ set_fs_root(current->fs, nd.mnt, nd.dentry); set_fs_altroot(); + set_fs_pwd(current->fs, nd.mnt, nd.dentry); error = 0; dput_and_out: path_release(&nd); -
| Len Brown | [PATCH 05/85] ACPI: Add "acpi.power_nocheck=1" to disable power state check in pow... |
| Andi Kleen | [PATCH] [2/50] x86_64: use core id bits for apicid_to_node initialization |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andrew Morton | 2.6.23-rc1-mm1 |
git: | |
| Gregory Haskins | [RFC PATCH 06/17] ioq: Add basic definitions for a shared-memory, lockless queue |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: mac80211 truesize bugs |
