summaryrefslogtreecommitdiffstats
path: root/sys/fs/fdescfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-09 22:14:57 +0000
committerphk <phk@FreeBSD.org>2004-11-09 22:14:57 +0000
commit921930c5854fc8118d129cc5be63eb03148ece00 (patch)
treeefc6e619521fca3446f6d2dcc4eb791155c7b651 /sys/fs/fdescfs
parentc6f350df370b418343158c6308fa6e6255dd7ae4 (diff)
downloadFreeBSD-src-921930c5854fc8118d129cc5be63eb03148ece00.zip
FreeBSD-src-921930c5854fc8118d129cc5be63eb03148ece00.tar.gz
Refuse attemps to mount root filesystem
Diffstat (limited to 'sys/fs/fdescfs')
-rw-r--r--sys/fs/fdescfs/fdesc_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/fdescfs/fdesc_vfsops.c b/sys/fs/fdescfs/fdesc_vfsops.c
index 01e8956..0b7e403 100644
--- a/sys/fs/fdescfs/fdesc_vfsops.c
+++ b/sys/fs/fdescfs/fdesc_vfsops.c
@@ -71,7 +71,7 @@ fdesc_mount(struct mount *mp, struct thread *td)
/*
* Update is a no-op
*/
- if (mp->mnt_flag & MNT_UPDATE)
+ if (mp->mnt_flag & (MNT_UPDATE | MNT_ROOTFS))
return (EOPNOTSUPP);
error = fdesc_allocvp(Froot, FD_ROOT, mp, &rvp, td);
OpenPOWER on IntegriCloud