summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1999-03-12 19:40:39 +0000
committerWarner Losh <imp@FreeBSD.org>1999-03-12 19:40:39 +0000
commitba1602a8ed088b41c4cc89a689a98a2f082af61e (patch)
tree286de765202e4a0b826409168205d984f83d9a51
parent841c7bb674396477f1826133ec7658163eca948e (diff)
Notes
-rw-r--r--sys/fs/umapfs/umap_vfsops.c8
-rw-r--r--sys/miscfs/umapfs/umap_vfsops.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/fs/umapfs/umap_vfsops.c b/sys/fs/umapfs/umap_vfsops.c
index 03b4cb4346f4..3ad41cf6c7dc 100644
--- a/sys/fs/umapfs/umap_vfsops.c
+++ b/sys/fs/umapfs/umap_vfsops.c
@@ -35,7 +35,7 @@
*
* @(#)umap_vfsops.c 8.8 (Berkeley) 5/14/95
*
- * $Id: umap_vfsops.c,v 1.22 1998/05/06 05:29:36 msmith Exp $
+ * $Id: umap_vfsops.c,v 1.23 1998/09/07 13:17:01 bde Exp $
*/
/*
@@ -95,6 +95,12 @@ umapfs_mount(mp, path, data, ndp, p)
int i;
#endif
+ /*
+ * Only for root
+ */
+ if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
+ return (error);
+
#ifdef UMAPFS_DIAGNOSTIC
printf("umapfs_mount(mp = %x)\n", mp);
#endif
diff --git a/sys/miscfs/umapfs/umap_vfsops.c b/sys/miscfs/umapfs/umap_vfsops.c
index 03b4cb4346f4..3ad41cf6c7dc 100644
--- a/sys/miscfs/umapfs/umap_vfsops.c
+++ b/sys/miscfs/umapfs/umap_vfsops.c
@@ -35,7 +35,7 @@
*
* @(#)umap_vfsops.c 8.8 (Berkeley) 5/14/95
*
- * $Id: umap_vfsops.c,v 1.22 1998/05/06 05:29:36 msmith Exp $
+ * $Id: umap_vfsops.c,v 1.23 1998/09/07 13:17:01 bde Exp $
*/
/*
@@ -95,6 +95,12 @@ umapfs_mount(mp, path, data, ndp, p)
int i;
#endif
+ /*
+ * Only for root
+ */
+ if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
+ return (error);
+
#ifdef UMAPFS_DIAGNOSTIC
printf("umapfs_mount(mp = %x)\n", mp);
#endif