- return ERR_PTR(error);
-}
-
-EXPORT_SYMBOL_GPL(vfs_kern_mount);
-
-struct vfsmount *
-do_kern_mount(const char *fstype, int flags, const char *name, void *data)
-{
- struct file_system_type *type = get_fs_type(fstype);
- struct vfsmount *mnt;
-
- if (!type)
- return ERR_PTR(-ENODEV);
-
- mnt = ERR_PTR(-EPERM);
- if ((type->fs_flags & FS_BINARY_MOUNTDATA) &&
- !vx_capable(CAP_SYS_ADMIN, VXC_BINARY_MOUNT))
- goto out_put;
-
- mnt = vfs_kern_mount(type, flags, name, data);
-out_put: