From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: CGroup Namespaces (v4) Date: Mon, 16 Nov 2015 21:54:58 -0600 Message-ID: <20151117035458.GA3158__6218.74297871745$1447732516$gmane$org@mail.hallyn.com> References: <1447703505-29672-1-git-send-email-serge@hallyn.com> <20151116204606.GA30681@mail.hallyn.com> <564A41AF.4040208@nod.at> <20151116205452.GA30975@mail.hallyn.com> <87y4dxh9b8.fsf@x220.int.ebiederm.org> <20151117011349.GA1958@mail.hallyn.com> <20151117014026.GA2331@mail.hallyn.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20151117014026.GA2331-7LNsyQBKDXoIagZqoN9o3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Serge E. Hallyn" Cc: Richard Weinberger , Linux Containers , LKML , "Eric W. Biederman" , LXC development mailing-list , "open list:ABI/API" , Tejun Heo , cgroups mailinglist , Andrew Morton List-Id: containers.vger.kernel.org On Mon, Nov 16, 2015 at 07:40:26PM -0600, Serge E. Hallyn wrote: > On Mon, Nov 16, 2015 at 07:13:49PM -0600, Serge E. Hallyn wrote: > > On Mon, Nov 16, 2015 at 04:24:27PM -0600, Eric W. Biederman wrote: ... > > > Similary have you considered what it required to be able to safely set > > > FS_USERNS_MOUNT? > > > > I think the only thing we need to do is > > > > 1. go through and make sure that any ability to change mount flags is under > > capable() (which I have not yet done). The cgroup_mount() itself checks that > > flags are not changed, but there may be some subtle way to effect a change > > that I'm not aware of yet. > > > > At least the ability to change the clone_children and release agent through > remount need to be restricted to init_user_ns root. No, they can only be changed on a new mount, so these are fine.