diff options
| -rw-r--r-- | fs/libfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index e973cd51f126..28d6f35feed6 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
| @@ -245,7 +245,8 @@ struct dentry *mount_pseudo_xattr(struct file_system_type *fs_type, char *name, | |||
| 245 | struct inode *root; | 245 | struct inode *root; |
| 246 | struct qstr d_name = QSTR_INIT(name, strlen(name)); | 246 | struct qstr d_name = QSTR_INIT(name, strlen(name)); |
| 247 | 247 | ||
| 248 | s = sget(fs_type, NULL, set_anon_super, MS_NOUSER, NULL); | 248 | s = sget_userns(fs_type, NULL, set_anon_super, MS_KERNMOUNT|MS_NOUSER, |
| 249 | &init_user_ns, NULL); | ||
| 249 | if (IS_ERR(s)) | 250 | if (IS_ERR(s)) |
| 250 | return ERR_CAST(s); | 251 | return ERR_CAST(s); |
| 251 | 252 | ||
