Re: [RFC PATCH 09/27] vfs: Allow mounting to other namespaces

2019-02-16 Thread Al Viro
On Fri, Feb 15, 2019 at 04:08:46PM +, David Howells wrote: > Currently sys_move_mount() and sys_mount(MS_MOVE) prevent the caller from > moving a mount into a namespace not their own. Relax this such that any > mount can be mounted onto any given mountpoint provided that the source > mount is

[RFC PATCH 09/27] vfs: Allow mounting to other namespaces

2019-02-15 Thread David Howells
Currently sys_move_mount() and sys_mount(MS_MOVE) prevent the caller from moving a mount into a namespace not their own. Relax this such that any mount can be mounted onto any given mountpoint provided that the source mount is either detached or the same namespace as the destination. This