Updates for changes prototype of kauth_cred_set/getgroups().

This commit is contained in:
dsl 2007-06-30 15:27:02 +00:00
parent b00d562b51
commit 6319443e37
3 changed files with 11 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: portal_vnops.c,v 1.70 2007/02/09 21:55:36 ad Exp $ */
/* $NetBSD: portal_vnops.c,v 1.71 2007/06/30 15:27:03 dsl Exp $ */
/*
* Copyright (c) 1992, 1993
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: portal_vnops.c,v 1.70 2007/02/09 21:55:36 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: portal_vnops.c,v 1.71 2007/06/30 15:27:03 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -389,7 +389,8 @@ portal_open(v)
pcred.pcr_uid = kauth_cred_geteuid(ap->a_cred);
pcred.pcr_gid = kauth_cred_getegid(ap->a_cred);
pcred.pcr_ngroups = kauth_cred_ngroups(ap->a_cred);
kauth_cred_getgroups(ap->a_cred, pcred.pcr_groups, pcred.pcr_ngroups);
kauth_cred_getgroups(ap->a_cred, pcred.pcr_groups, pcred.pcr_ngroups,
UIO_SYSSPACE);
aiov[0].iov_base = &pcred;
aiov[0].iov_len = sizeof(pcred);
aiov[1].iov_base = pt->pt_arg;

View File

@ -1,4 +1,4 @@
/* $NetBSD: umap_subr.c,v 1.24 2006/05/14 21:32:21 elad Exp $ */
/* $NetBSD: umap_subr.c,v 1.25 2007/06/30 15:27:03 dsl Exp $ */
/*
* Copyright (c) 1999 National Aeronautics & Space Administration
@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: umap_subr.c,v 1.24 2006/05/14 21:32:21 elad Exp $");
__KERNEL_RCSID(0, "$NetBSD: umap_subr.c,v 1.25 2007/06/30 15:27:03 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -194,5 +194,5 @@ umap_mapids(v_mount, credp)
groups[i] = NULLGROUP;
}
kauth_cred_setgroups(credp, groups, ngroups, -1);
kauth_cred_setgroups(credp, groups, ngroups, -1, UIO_SYSSPACE);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_socket.c,v 1.158 2007/06/22 14:39:59 yamt Exp $ */
/* $NetBSD: nfs_socket.c,v 1.159 2007/06/30 15:27:02 dsl Exp $ */
/*
* Copyright (c) 1989, 1991, 1993, 1995
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.158 2007/06/22 14:39:59 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.159 2007/06/30 15:27:02 dsl Exp $");
#include "fs_nfs.h"
#include "opt_nfs.h"
@ -1968,7 +1968,8 @@ nfs_getreq(nd, nfsd, has_header)
else
tl++;
}
kauth_cred_setgroups(nd->nd_cr, grbuf, min(len, NGROUPS), -1);
kauth_cred_setgroups(nd->nd_cr, grbuf, min(len, NGROUPS), -1,
UIO_SYSSPACE);
free(grbuf, M_TEMP);
len = fxdr_unsigned(int, *++tl);