diff options
author | phk <phk@FreeBSD.org> | 2004-11-09 22:21:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-11-09 22:21:10 +0000 |
commit | 37ad4f1923f750790407861ce00a1e96c5f1b0be (patch) | |
tree | a0898a9eb72f91239f4c43f21404a108a77b4bc4 /sys/fs/nwfs | |
parent | 921930c5854fc8118d129cc5be63eb03148ece00 (diff) | |
download | FreeBSD-src-37ad4f1923f750790407861ce00a1e96c5f1b0be.zip FreeBSD-src-37ad4f1923f750790407861ce00a1e96c5f1b0be.tar.gz |
Refuse attempts to mount root filesystem
Diffstat (limited to 'sys/fs/nwfs')
-rw-r--r-- | sys/fs/nwfs/nwfs_vfsops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nwfs/nwfs_vfsops.c b/sys/fs/nwfs/nwfs_vfsops.c index 2900048..5d807ab 100644 --- a/sys/fs/nwfs/nwfs_vfsops.c +++ b/sys/fs/nwfs/nwfs_vfsops.c @@ -147,6 +147,8 @@ static int nwfs_omount(struct mount *mp, char *path, caddr_t data, struct vnode *vp; char *pc,*pe; + if (mp->mnt_flag & MNT_ROOTFS) + return (EOPNOTSUPP); if (data == NULL) { nwfs_printf("missing data argument\n"); return 1; |