From 921930c5854fc8118d129cc5be63eb03148ece00 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 9 Nov 2004 22:14:57 +0000 Subject: Refuse attemps to mount root filesystem --- sys/fs/fdescfs/fdesc_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/fdescfs') 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); -- cgit v1.1