diff options
author | phk <phk@FreeBSD.org> | 2004-10-28 06:03:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-28 06:03:25 +0000 |
commit | 6b2d7f7134a56b0cd253b84b2f0ddea9b9040c6b (patch) | |
tree | 7cc8f4bb801d21c3d70ac268ddb83a70f5022895 /sys/fs/devfs/devfs_vfsops.c | |
parent | f73575dddd59136880e0c9d55d3c84647a79f4bb (diff) | |
download | FreeBSD-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_vfsops.c')
-rw-r--r-- | sys/fs/devfs/devfs_vfsops.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c index 27a759f..a904dcd 100644 --- a/sys/fs/devfs/devfs_vfsops.c +++ b/sys/fs/devfs/devfs_vfsops.c @@ -67,10 +67,8 @@ devfs_mount(struct mount *mp, struct thread *td) struct vnode *rvp; error = 0; - /* - * XXX: flag changes. - */ - if (mp->mnt_flag & MNT_UPDATE) + + if (mp->mnt_flag & (MNT_UPDATE | MNT_NODEV)) return (EOPNOTSUPP); MALLOC(fmp, struct devfs_mount *, sizeof(struct devfs_mount), |