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/smbfs/smbfs_vfsops.c | |
parent | 921930c5854fc8118d129cc5be63eb03148ece00 (diff) | |
download | FreeBSD-src-37ad4f1923f750790407861ce00a1e96c5f1b0be.zip FreeBSD-src-37ad4f1923f750790407861ce00a1e96c5f1b0be.tar.gz |
Refuse attempts to mount root filesystem
Diffstat (limited to 'sys/fs/smbfs/smbfs_vfsops.c')
-rw-r--r-- | sys/fs/smbfs/smbfs_vfsops.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index d8d90e4..e841f91 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -122,10 +122,9 @@ smbfs_omount(struct mount *mp, char *path, caddr_t data, struct thread *td) printf("missing data argument\n"); return EINVAL; } - if (mp->mnt_flag & MNT_UPDATE) { - printf("MNT_UPDATE not implemented"); + if (mp->mnt_flag & (MNT_UPDATE | MNT_ROOTFS)) return EOPNOTSUPP; - } + error = copyin(data, (caddr_t)&args, sizeof(struct smbfs_args)); if (error) return error; |