|
@@ -2397,10 +2397,6 @@ static int do_new_mount(struct path *path, const char *fstype, int flags,
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
|
|
|
if (user_ns != &init_user_ns) {
|
|
if (user_ns != &init_user_ns) {
|
|
- if (!(type->fs_flags & FS_USERNS_MOUNT)) {
|
|
|
|
- put_filesystem(type);
|
|
|
|
- return -EPERM;
|
|
|
|
- }
|
|
|
|
/* Only in special cases allow devices from mounts
|
|
/* Only in special cases allow devices from mounts
|
|
* created outside the initial user namespace.
|
|
* created outside the initial user namespace.
|
|
*/
|
|
*/
|