1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clport.c 194498 2009-06-19 17:10:35Z brooks $"); |
36 37/* 38 * generally, I don't like #includes inside .h files, but it seems to 39 * be the easiest way to handle the port. 40 */ 41#include <fs/nfs/nfsport.h> 42#include <netinet/if_ether.h> 43#include <net/if_types.h> --- 927 unchanged lines hidden (view full) --- 971} 972 973/* 974 * Copy NFS uid, gids from the cred structure. 975 */ 976void 977newnfs_copyincred(struct ucred *cr, struct nfscred *nfscr) 978{ |
979 int i; |
980 981 nfscr->nfsc_uid = cr->cr_uid; |
982 nfscr->nfsc_ngroups = MIN(cr->cr_ngroups, XU_NGROUPS); 983 for (i = 0; i < nfscr->nfsc_ngroups; i++) |
984 nfscr->nfsc_groups[i] = cr->cr_groups[i]; |
985} 986 987 988/* 989 * Do any client specific initialization. 990 */ 991void 992nfscl_init(void) --- 277 unchanged lines hidden --- |