cred(9S)
NAME
cred − access credential structure
SYNOPSIS
#include <sys/cred.h>
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
DESCRIPTION
This structure is used to check the access credentials of the process requesting access to kernel space.
The size of the cr_groups[] array is configurable, however, its size is the same for all cred structures. Note that cr_ngroups records the number of elements currently in use, not the array size.
STRUCTURE MEMBERS
| ushort | cr_ref; | /∗ reference count on processes using ∗/ |
| /∗ cred structure. Not set by drivers. ∗/ | ||
| ushort | cr_ngroups; | /∗ number of groups in cr_groups ∗/ |
| uid_t | cr_uid; | /∗ effective user ID ∗/ |
| gid_t | cr_gid; | /∗ effective group ID ∗/ |
| uid_t | cr_ruid; | /∗ real user ID ∗/ |
| gid_t | cr_rgid; | /∗ real group ID ∗/ |
| uid_t | cr_suid; | /∗ "saved" user ID (from exec) ∗/ |
| gid_t | cr_sgid; | /∗ "saved" group ID (from exec) ∗/ |
| gid_t | cr_groups[1]; | /∗ supplementary groups list ∗/ |
The cred structure is defined as type cred_t.
SEE ALSO
close(9E), open(9E), ioctl(9E), mmap(9E), read(9E), segmap(9E), write(9E)
SunOS 5.1/x86 — Last change: 11 Apr 1991