Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/devfs/devfs_vfsops.c
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | devfs_mount(struct mount *mp) | ||||
if (devfs_unr == NULL) | if (devfs_unr == NULL) | ||||
devfs_unr = new_unrhdr(0, INT_MAX, NULL); | devfs_unr = new_unrhdr(0, INT_MAX, NULL); | ||||
error = 0; | error = 0; | ||||
if (mp->mnt_flag & MNT_ROOTFS) | if (mp->mnt_flag & MNT_ROOTFS) | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
if (!prison_allow(td->td_ucred, PR_ALLOW_MOUNT_DEVFS)) | |||||
return (EPERM); | |||||
rsnum = 0; | rsnum = 0; | ||||
injail = jailed(td->td_ucred); | injail = jailed(td->td_ucred); | ||||
if (mp->mnt_optnew != NULL) { | if (mp->mnt_optnew != NULL) { | ||||
if (vfs_filteropt(mp->mnt_optnew, devfs_opts)) | if (vfs_filteropt(mp->mnt_optnew, devfs_opts)) | ||||
return (EINVAL); | return (EINVAL); | ||||
if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) | if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |