diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-04-27 12:21:16 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-04-27 12:21:16 +0000 |
commit | 1c308b817a866f9cd41dd238a709e248d021f5c1 (patch) | |
tree | 79336e2dd626703dce5d6d8743676813a262efd2 /sys/fs/procfs/procfs_mem.c | |
parent | 618aa782bebfb0aba0c1edd72719877a244a0c48 (diff) |
Change suser_xxx() to suser() where it applies.
Notes
Notes:
svn path=/head/; revision=46116
Diffstat (limited to 'sys/fs/procfs/procfs_mem.c')
-rw-r--r-- | sys/fs/procfs/procfs_mem.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/fs/procfs/procfs_mem.c b/sys/fs/procfs/procfs_mem.c index 4ca115fc561d..5fe9ef6794d9 100644 --- a/sys/fs/procfs/procfs_mem.c +++ b/sys/fs/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; |