summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs_vnops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-10-28 06:03:25 +0000
committerphk <phk@FreeBSD.org>2004-10-28 06:03:25 +0000
commit6b2d7f7134a56b0cd253b84b2f0ddea9b9040c6b (patch)
tree7cc8f4bb801d21c3d70ac268ddb83a70f5022895 /sys/fs/devfs/devfs_vnops.c
parentf73575dddd59136880e0c9d55d3c84647a79f4bb (diff)
downloadFreeBSD-src-6b2d7f7134a56b0cd253b84b2f0ddea9b9040c6b.zip
FreeBSD-src-6b2d7f7134a56b0cd253b84b2f0ddea9b9040c6b.tar.gz
What can I say: don't allow people to mount DEVFS with option "nodev".
Diffstat (limited to 'sys/fs/devfs/devfs_vnops.c')
-rw-r--r--sys/fs/devfs/devfs_vnops.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index 90b15c5..c7af743 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -707,10 +707,6 @@ devfs_open(ap)
if (vp->v_type == VBLK)
return (ENXIO);
- /* Don't allow open if fs is mounted -nodev. */
- if (vp->v_mount && (vp->v_mount->mnt_flag & MNT_NODEV))
- return (ENXIO);
-
if (dev == NULL)
return (ENXIO);
OpenPOWER on IntegriCloud