2010-07-15 14:48:15 +02:00
|
|
|
#ifndef __SYS_UCRED_H
|
|
|
|
#define __SYS_UCRED_H
|
|
|
|
|
2011-09-05 15:56:14 +02:00
|
|
|
struct ucred_old
|
2010-07-15 14:48:15 +02:00
|
|
|
{
|
|
|
|
pid_t pid;
|
2011-09-05 15:56:14 +02:00
|
|
|
short uid;
|
2012-02-11 19:31:25 +01:00
|
|
|
char gid;
|
2011-09-05 15:56:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ucred
|
|
|
|
{
|
2012-02-11 19:31:25 +01:00
|
|
|
pid_t pid;
|
|
|
|
uid_t uid;
|
|
|
|
gid_t gid;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Userland's view of credentials. This should not change */
|
|
|
|
struct uucred {
|
|
|
|
unsigned short cr_unused; /* not used, compat */
|
|
|
|
uid_t cr_uid; /* effective user id */
|
|
|
|
gid_t cr_gid; /* effective group id */
|
|
|
|
short cr_ngroups; /* number of groups */
|
|
|
|
gid_t cr_groups[NGROUPS_MAX]; /* groups */
|
2010-07-15 14:48:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|