diff mbox

[wily] UBUNTU: SAUCE: overlayfs: Enable user namespace mounts for the "overlay" fstype

Message ID 1438006614-58455-1-git-send-email-seth.forshee@canonical.com
State New
Headers show

Commit Message

Seth Forshee July 27, 2015, 2:16 p.m. UTC
User namespace mounts were mistakenly only enabled for the
"overlayfs" fstype and not for the "overlay" fstype. This is a
regression in behavior towards userspace from previous Ubuntu
kernels and breaks some features of LXC.

BugLink: http://bugs.launchpad.net/bugs/1478578
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
---
 fs/overlayfs/super.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Chris J Arges July 27, 2015, 3:16 p.m. UTC | #1
On 07/27/2015 09:16 AM, Seth Forshee wrote:
> User namespace mounts were mistakenly only enabled for the
> "overlayfs" fstype and not for the "overlay" fstype. This is a
> regression in behavior towards userspace from previous Ubuntu
> kernels and breaks some features of LXC.
> 
> BugLink: http://bugs.launchpad.net/bugs/1478578
> Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
> ---
>  fs/overlayfs/super.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
> index f6d8507..3181482 100644
> --- a/fs/overlayfs/super.c
> +++ b/fs/overlayfs/super.c
> @@ -1099,6 +1099,7 @@ static struct file_system_type ovl_fs_type = {
>  	.name		= "overlay",
>  	.mount		= ovl_mount,
>  	.kill_sb	= kill_anon_super,
> +	.fs_flags	= FS_USERNS_MOUNT,
>  };
>  MODULE_ALIAS_FS("overlay");
>  
>
Tim Gardner July 27, 2015, 3:57 p.m. UTC | #2

diff mbox

Patch

diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index f6d8507..3181482 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -1099,6 +1099,7 @@  static struct file_system_type ovl_fs_type = {
 	.name		= "overlay",
 	.mount		= ovl_mount,
 	.kill_sb	= kill_anon_super,
+	.fs_flags	= FS_USERNS_MOUNT,
 };
 MODULE_ALIAS_FS("overlay");