lkml.org 
[lkml]   [2014]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: MNT_DETACH and mount namespace issue
On Mon, Aug 04, 2014 at 11:19:35PM +0200, Richard Weinberger wrote:
> Am 04.08.2014 18:46, schrieb Eric W. Biederman:
> > Richard Weinberger <richard.weinberger@gmail.com> writes:
>
> /proc is propagating into another mount namespaces that does not care.
> This happens because systemd creates for several services a mount namespace and sets
> the root tree to MS_SHARED.

if propagations are not needed, than set the root of the new mount
namespace to MS_PRIVATE first and then set it to MS_SHARED.

MS_PRIVATE will delink the propagations, and MS_SHARED later will enable
the new mounts to propagate to whoever wants them.

RP



\
 
 \ /
  Last update: 2014-08-05 00:41    [W:0.062 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site