summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-04-27 12:21:16 +0000
committerphk <phk@FreeBSD.org>1999-04-27 12:21:16 +0000
commitc85ea5017c00c71172e6cfb5bd1cd171837b5812 (patch)
treeaca6b1fc91e0bab42a5779a3281ed2200865e0ec /sys/miscfs
parenta6d35492b341c0b95e74bb23a0f1d29bdf6b9fa5 (diff)
downloadFreeBSD-src-c85ea5017c00c71172e6cfb5bd1cd171837b5812.zip
FreeBSD-src-c85ea5017c00c71172e6cfb5bd1cd171837b5812.tar.gz
Change suser_xxx() to suser() where it applies.
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/procfs/procfs_mem.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/miscfs/procfs/procfs_mem.c b/sys/miscfs/procfs/procfs_mem.c
index 4ca115f..5fe9ef6 100644
--- a/sys/miscfs/procfs/procfs_mem.c
+++ b/sys/miscfs/procfs/procfs_mem.c
@@ -37,7 +37,7 @@
*
* @(#)procfs_mem.c 8.5 (Berkeley) 6/15/94
*
- * $Id: procfs_mem.c,v 1.35 1998/10/28 13:37:00 dg Exp $
+ * $Id: procfs_mem.c,v 1.36 1999/04/27 11:16:37 phk Exp $
*/
/*
@@ -331,11 +331,12 @@ int procfs_kmemaccess(curp)
struct ucred *cred;
cred = curp->p_cred->pc_ucred;
- if (suser_xxx(cred, &curp->p_acflag))
+ if (suser(curp))
return 1;
-
+
+ /* XXX: Why isn't this done with file-perms ??? */
for (i = 0; i < cred->cr_ngroups; i++)
- if (cred->cr_groups[i] == KMEM_GROUP)
+ if (cred->cr_groups[i] == KMEM_GROUP)
return 1;
return 0;
OpenPOWER on IntegriCloud