linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How do I make a clean mount namespace?
@ 2014-04-22 22:12 Andy Lutomirski
  2014-04-23 20:01 ` Richard Weinberger
  2014-04-24  2:39 ` Al Viro
  0 siblings, 2 replies; 6+ messages in thread
From: Andy Lutomirski @ 2014-04-22 22:12 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org, Linux FS Devel

I want to set up a little container.  So I unshare the mount namespace
and mount something somewhere (say /mnt) that I want to be my new
root.  Now what?

pivot_root("/mnt", "/mnt/garbage") seems to frequently return -EBUSY.

mounting /mnt onto / using MS_MOVE seems to succeed, but / still
points at the old root.

Am I missing a clean way to do this?  I want a way to say "make this
mountpoint be the root of the whole mount namespace and lazy-unmount
everything outside it".  If there is no straightforward way to do
that, can we add one?

--Andy

-- 
Andy Lutomirski
AMA Capital Management, LLC

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-24  5:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 22:12 How do I make a clean mount namespace? Andy Lutomirski
2014-04-23 20:01 ` Richard Weinberger
2014-04-24  0:54   ` Andy Lutomirski
2014-04-24  2:24     ` Al Viro
2014-04-24  2:39 ` Al Viro
2014-04-24  5:06   ` Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).