-/* $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 $ */
/*
#ifndef _SYS_UCRED_H_
#define _SYS_UCRED_H_
+#include <sys/syslimits.h>
+
/*
* Credentials.
*/
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 */
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