2011-02-21 14:13:55 +01:00
|
|
|
#ifndef __SYS_UCRED_H
|
|
|
|
#define __SYS_UCRED_H
|
|
|
|
|
2011-09-05 15:56:14 +02:00
|
|
|
struct ucred_old
|
|
|
|
{
|
|
|
|
pid_t pid;
|
|
|
|
short uid;
|
2011-11-14 12:53:05 +01:00
|
|
|
char gid;
|
2011-09-05 15:56:14 +02:00
|
|
|
};
|
2011-02-21 14:13:55 +01:00
|
|
|
|
|
|
|
struct ucred
|
|
|
|
{
|
2011-11-14 12:53:05 +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 */
|
2011-02-21 14:13:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|