]> git.proxmox.com Git - mirror_spl.git/blob - include/linux-cred.h
Initial commit. All spl source written up to this point wrapped
[mirror_spl.git] / include / linux-cred.h
1 #ifndef _SYS_LINUX_CRED_H
2 #define _SYS_LINUX_CRED_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <linux/types.h>
9
10 /* XXX - Portions commented out because we really just want to have the type
11 * defined and the contents aren't nearly so important at the moment. */
12 typedef struct cred {
13 uint_t cr_ref; /* reference count */
14 uid_t cr_uid; /* effective user id */
15 gid_t cr_gid; /* effective group id */
16 uid_t cr_ruid; /* real user id */
17 gid_t cr_rgid; /* real group id */
18 uid_t cr_suid; /* "saved" user id (from exec) */
19 gid_t cr_sgid; /* "saved" group id (from exec) */
20 uint_t cr_ngroups; /* number of groups returned by */
21 /* crgroups() */
22 #if 0
23 cred_priv_t cr_priv; /* privileges */
24 projid_t cr_projid; /* project */
25 struct zone *cr_zone; /* pointer to per-zone structure */
26 struct ts_label_s *cr_label; /* pointer to the effective label */
27 credsid_t *cr_ksid; /* pointer to SIDs */
28 #endif
29 gid_t cr_groups[1]; /* cr_groups size not fixed */
30 /* audit info is defined dynamically */
31 /* and valid only when audit enabled */
32 /* auditinfo_addr_t cr_auinfo; audit info */
33 } cred_t;
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif /* _SYS_LINUX_CRED_H */
40