[Devel] [PATCH rh7 v2] ve/devpts: Force devpts mounting to use @newinstance inside VE
Vladimir Davydov
vdavydov at parallels.com
Tue Jul 21 05:52:14 PDT 2015
On Tue, Jul 21, 2015 at 03:49:52PM +0300, Cyrill Gorcunov wrote:
> On Tue, Jul 21, 2015 at 03:25:34PM +0300, Vladimir Davydov wrote:
> > > + if (opts.newinstance && get_exec_env()->devpts_sb) {
> > > root = mount_nodev(fs_type, flags, data, devpts_fill_super);
> > > - else
> > > + } else {
> > > + opts.newinstance = 0;
> > > root = mount_ns(fs_type, flags, data, get_exec_env(), devpts_fill_super);
> > > + }
> >
> > This looks like an abuse of mount_ns to me...
> >
> > May be, we'd better simply revert to what we have in PCS6? I mean
> > reverting commits 2c27d20125f51 and c77f3df733bfa. Less intrusive and
> > more understandable if you ask me.
>
> As far as I understand if we revert these commits we would
> allow to mount host's devpts into container. At least I don't
> see how this would be prevented.
# define devpts_mnt (get_exec_env()->devpts_mnt)
More information about the Devel
mailing list