Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-11-06 Thread Jann Horn
On Tue, Oct 30, 2018 at 9:51 AM Laurent Vivier wrote: > Le 24/10/2018 à 19:15, Laurent Vivier a écrit : > > On 16/10/2018 17:22, Andrei Vagin wrote: > >> On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: > >>> This patch allows to have a different binfmt_misc configuration > >>> for

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-30 Thread Laurent Vivier
Le 24/10/2018 à 19:15, Laurent Vivier a écrit : > On 16/10/2018 17:22, Andrei Vagin wrote: >> On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: >>> This patch allows to have a different binfmt_misc configuration >>> for each new user namespace. By default, the binfmt_misc configuratio

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-24 Thread Laurent Vivier
On 16/10/2018 17:22, Andrei Vagin wrote: > On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one of the previous level, but if the bin

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-16 Thread Andrei Vagin
On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: > This patch allows to have a different binfmt_misc configuration > for each new user namespace. By default, the binfmt_misc configuration > is the one of the previous level, but if the binfmt_misc filesystem is > mounted in the new na

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-16 Thread Laurent Vivier
Le 16/10/2018 à 12:13, Rasmus Villemoes a écrit : > On 2018-10-10 18:14, Laurent Vivier wrote: > >> +/* create a new binfmt namespace >> + * if we are not in the first user namespace >> + * but the binfmt namespace is the first one >> + */ >> +if (READ_ONCE(ns->binfmt_ns) == NU

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-16 Thread Rasmus Villemoes
On 2018-10-10 18:14, Laurent Vivier wrote: > + /* create a new binfmt namespace > + * if we are not in the first user namespace > + * but the binfmt namespace is the first one > + */ > + if (READ_ONCE(ns->binfmt_ns) == NULL) { > + struct binfmt_namespace *new_ns;

[PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-10 Thread Laurent Vivier
This patch allows to have a different binfmt_misc configuration for each new user namespace. By default, the binfmt_misc configuration is the one of the previous level, but if the binfmt_misc filesystem is mounted in the new namespace a new empty binfmt instance is created and used in this namespac