login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
24
Re: sys_chroot+sys_fchdir Fix
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Serge E. Hallyn
Subject:
Re: sys_chroot+sys_fchdir Fix
Date: Monday, September 24, 2007 - 4:02 pm
Quoting David Newall (
david@davidnewall.com
):
quoted text
> Serge E. Hallyn wrote: >> No reason for any new parameters to pivot_root. Just clone your mounts >> namespace first. >> >> unshare(CLONE_NEWNS); >> chdir(new_dir); >> pivot_root(new_dir, oldroot); >> >> Since pivot_root actually fiddles with the vfsmnts, this is really the >> only way to go about having it "work with just one process". > > I think the point is that, whereas we'd like to be able to pivot the root > for a single process, in practice this causes startup issues to which the > easy solution is to pivot the whole system. At least that's my reading of > the man page. > > It might be tidy if pivot_root could be used (instead of a hack based on a > chroot bug), but it'd still be unportable.
Oh. Yes, true, it is unportable. -serge -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: sys_chroot+sys_fchdir Fix
, Bodo Eggert
, (Thu Sep 20, 4:13 am)
Re: sys_chroot+sys_fchdir Fix
, Philipp Marek
, (Thu Sep 20, 4:59 am)
Re: sys_chroot+sys_fchdir Fix
, majkls
, (Thu Sep 20, 5:52 am)
Re: sys_chroot+sys_fchdir Fix
, David Newall
, (Thu Sep 20, 9:06 am)
Re: sys_chroot+sys_fchdir Fix
, Philipp Marek
, (Thu Sep 20, 9:17 am)
Re: sys_chroot+sys_fchdir Fix
, David Newall
, (Thu Sep 20, 11:02 am)
Re: sys_chroot+sys_fchdir Fix
, Bill Davidsen
, (Thu Sep 20, 1:53 pm)
Re: sys_chroot+sys_fchdir Fix
, David Newall
, (Fri Sep 21, 1:29 am)
Re: sys_chroot+sys_fchdir Fix
, Serge E. Hallyn
, (Mon Sep 24, 2:32 pm)
Re: sys_chroot+sys_fchdir Fix
, David Newall
, (Mon Sep 24, 3:04 pm)
Re: sys_chroot+sys_fchdir Fix
, Serge E. Hallyn
, (Mon Sep 24, 4:00 pm)
Re: sys_chroot+sys_fchdir Fix
, Serge E. Hallyn
, (Mon Sep 24, 4:02 pm)
Re: sys_chroot+sys_fchdir Fix
, David Newall
, (Tue Sep 25, 12:45 am)
Re: sys_chroot+sys_fchdir Fix
, Serge E. Hallyn
, (Tue Sep 25, 4:49 am)
Re: sys_chroot+sys_fchdir Fix
, David Newall
, (Tue Sep 25, 6:58 am)
Chroot bug (was: sys_chroot+sys_fchdir Fix)
, David Newall
, (Tue Sep 25, 8:10 am)
Re: Chroot bug (was: sys_chroot+sys_fchdir Fix)
, Jan Engelhardt
, (Tue Sep 25, 8:20 am)
Re: Chroot bug (was: sys_chroot+sys_fchdir Fix)
, Alan Cox
, (Tue Sep 25, 8:30 am)
Re: Chroot bug (was: sys_chroot+sys_fchdir Fix)
, Adrian Bunk
, (Tue Sep 25, 8:32 am)
Re: Chroot bug
, David Newall
, (Tue Sep 25, 8:35 am)
Re: Chroot bug
, Miloslav Semler
, (Tue Sep 25, 8:39 am)
Re: Chroot bug
, David Newall
, (Tue Sep 25, 8:41 am)
Re: Chroot bug
, Miloslav Semler
, (Tue Sep 25, 8:43 am)
Re: Chroot bug
, Jan Engelhardt
, (Tue Sep 25, 8:47 am)
Re: Chroot bug
, Alan Cox
, (Tue Sep 25, 8:48 am)
Re: Chroot bug
, Jan Engelhardt
, (Tue Sep 25, 8:48 am)
Re: Chroot bug
, Adrian Bunk
, (Tue Sep 25, 9:02 am)
Re: Chroot bug
, Miloslav Semler
, (Tue Sep 25, 9:19 am)
Re: Chroot bug
, Arjan van de Ven
, (Tue Sep 25, 9:33 am)
Re: Chroot bug
, Jan Engelhardt
, (Tue Sep 25, 9:52 am)
Re: Chroot bug
, Serge E. Hallyn
, (Tue Sep 25, 9:53 am)
Re: Chroot bug
, Miloslav Semler
, (Tue Sep 25, 10:00 am)
Re: Chroot bug
, Jan Engelhardt
, (Tue Sep 25, 10:05 am)
Re: Chroot bug
, Miloslav Semler
, (Tue Sep 25, 10:09 am)
Re: Chroot bug
, Al Viro
, (Tue Sep 25, 10:09 am)
Re: Chroot bug
, Miloslav Semler
, (Tue Sep 25, 10:19 am)
Re: Chroot bug
, David Newall
, (Tue Sep 25, 1:51 pm)
Re: Chroot bug
, David Newall
, (Tue Sep 25, 4:50 pm)
Re: Chroot bug
, Alan Cox
, (Tue Sep 25, 5:18 pm)
Re: Chroot bug
, Adrian Bunk
, (Tue Sep 25, 5:55 pm)
Re: Chroot bug
, Kyle Moffett
, (Tue Sep 25, 10:21 pm)
Re: Chroot bug
, Willy Tarreau
, (Tue Sep 25, 10:25 pm)
Re: Chroot bug
, David Newall
, (Wed Sep 26, 3:24 am)
Re: Chroot bug
, David Newall
, (Wed Sep 26, 3:27 am)
Re: Chroot bug
, Olivier Galibert
, (Wed Sep 26, 3:45 am)
Re: Chroot bug
, Alan Cox
, (Wed Sep 26, 3:47 am)
Re: Chroot bug
, David Newall
, (Wed Sep 26, 4:06 am)
Re: Chroot bug
, David Newall
, (Wed Sep 26, 4:13 am)
Re: Chroot bug
, Alan Cox
, (Wed Sep 26, 4:20 am)
Re: Chroot bug
, Kyle Moffett
, (Wed Sep 26, 5:54 am)
Re: Chroot bug
, Miloslav Semler
, (Wed Sep 26, 6:11 am)
Re: Chroot bug
, Bongani Hlope
, (Wed Sep 26, 6:13 am)
Re: Chroot bug
, linux-os (Dick Johnson)
, (Wed Sep 26, 6:18 am)
Re: Chroot bug
, Al Viro
, (Wed Sep 26, 6:42 am)
Re: Chroot bug
, Kyle Moffett
, (Wed Sep 26, 7:02 am)
Re: Chroot bug
, Miloslav Semler
, (Wed Sep 26, 7:51 am)
Re: Chroot bug
, Miloslav Semler
, (Wed Sep 26, 8:01 am)
Re: Chroot bug
, Olivier Galibert
, (Wed Sep 26, 8:02 am)
Re: Chroot bug (was: sys_chroot+sys_fchdir Fix)
, Bodo Eggert
, (Wed Sep 26, 12:23 pm)
Re: Chroot bug
, Jiri Kosina
, (Thu Sep 27, 6:49 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alan Cox
Re: Please add ZFS support (from GPL sources)
Trenton D. Adams
Re: Flash IO slow 1.5 MB/s
Ingo Molnar
Re: [PATCH] x86: silence section mismatch warning - uv_cpu_init
Mike Galbraith
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Rafael J. Wysocki
[Bug #11287] Regression in 2.6.27-rc2 in acpi_processor_init()
git
:
Junio C Hamano
Re: git-svnimport
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Mark Burton
Re: Sporadic BSOD with msys git?
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
linux-netdev
:
David Miller
Re: [RFC 0/5] generic rx recycling
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Jeff Kirsher
[net-2.6 PATCH 2/5] e1000e: increase swflag acquisition timeout for ICHx/PCH
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
sm501: add power control callback
Linux Kernel Mailing List
net: don't grab a mutex within a timer context in gianfar
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
openbsd-misc
:
daniele.pilenga
snmpd hangs on 4.1 looking up hrSWRunTable
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Cabillot Julien
Re: OpenBSD isakmpd and pf vs Cisco PIX or ASA
Nice Daemon
Re: Bind ntpd on certain interface?
Colocation donated by:
Syndicate