Re: [PATCH 25/27] ipc: Convert mqueue fs to fs_context [ver #5]

2017-06-15 Thread David Howells
Al Viro wrote: > > + if (ctx->ipc_ns != ns) { > > How could they possibly be equal? You are setting that ns up here, right? > How could it be in any process' nsproxy? Fair point. > Ugh, again... Is there any reason for dynamic allocation of that thing in > this particular case? AFAICS, th

Re: [PATCH 25/27] ipc: Convert mqueue fs to fs_context [ver #5]

2017-06-15 Thread Al Viro
On Wed, Jun 14, 2017 at 04:19:03PM +0100, David Howells wrote: > Convert the mqueue filesystem to use the filesystem context stuff. > > Notes: > > (1) The relevant ipc namespace is selected in when the context is > initialised (and it defaults to the current task's ipc namespace). > Th

[PATCH 25/27] ipc: Convert mqueue fs to fs_context [ver #5]

2017-06-14 Thread David Howells
Convert the mqueue filesystem to use the filesystem context stuff. Notes: (1) The relevant ipc namespace is selected in when the context is initialised (and it defaults to the current task's ipc namespace). The caller can override this before calling vfs_get_tree(). (2) Rather than s