From: deraadt Date: Thu, 15 Jan 2015 23:58:39 +0000 (+0000) Subject: include to get access to (and then use) NGROUPS_MAX X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d447f645087619696379171c972fff3d8dcbb44a;p=openbsd include to get access to (and then use) NGROUPS_MAX discussed at length with guenther ok millert --- diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h index dd22f5ae4d9..4e7206a252f 100644 --- a/sys/sys/ucred.h +++ b/sys/sys/ucred.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ucred.h,v 1.9 2014/04/18 11:51:17 guenther Exp $ */ +/* $OpenBSD: ucred.h,v 1.10 2015/01/15 23:58:39 deraadt Exp $ */ /* $NetBSD: ucred.h,v 1.12 1995/06/01 22:44:50 jtc Exp $ */ /* @@ -35,6 +35,8 @@ #ifndef _SYS_UCRED_H_ #define _SYS_UCRED_H_ +#include + /* * Credentials. */ @@ -50,7 +52,7 @@ struct ucred { gid_t cr_rgid; /* Real group id. */ gid_t cr_svgid; /* Saved effective group id. */ short cr_ngroups; /* number of groups */ - gid_t cr_groups[NGROUPS]; /* groups */ + gid_t cr_groups[NGROUPS_MAX]; /* groups */ }; #define NOCRED ((struct ucred *)-1) /* no credential available */ #define FSCRED ((struct ucred *)-2) /* filesystem credential */ @@ -62,7 +64,7 @@ struct xucred { uid_t cr_uid; /* user id */ gid_t cr_gid; /* group id */ short cr_ngroups; /* number of groups */ - gid_t cr_groups[NGROUPS]; /* groups */ + gid_t cr_groups[NGROUPS_MAX]; /* groups */ }; #ifdef _KERNEL