8 #include <linux/module.h>
12 /* XXX - Portions commented out because we really just want to have the type
13 * defined and the contents aren't nearly so important at the moment. */
15 uint_t cr_ref; /* reference count */
16 uid_t cr_uid; /* effective user id */
17 gid_t cr_gid; /* effective group id */
18 uid_t cr_ruid; /* real user id */
19 gid_t cr_rgid; /* real group id */
20 uid_t cr_suid; /* "saved" user id (from exec) */
21 gid_t cr_sgid; /* "saved" group id (from exec) */
22 uint_t cr_ngroups; /* number of groups returned by */
25 cred_priv_t cr_priv; /* privileges */
26 projid_t cr_projid; /* project */
27 struct zone *cr_zone; /* pointer to per-zone structure */
28 struct ts_label_s *cr_label; /* pointer to the effective label */
29 credsid_t *cr_ksid; /* pointer to SIDs */
31 gid_t cr_groups[1]; /* cr_groups size not fixed */
32 /* audit info is defined dynamically */
33 /* and valid only when audit enabled */
34 /* auditinfo_addr_t cr_auinfo; audit info */
40 static __inline__ uid_t
46 static __inline__ gid_t
53 crgetngroups(cred_t *cr)
58 static __inline__ gid_t *
59 crgetgroups(cred_t *cr)
68 #endif /* _SPL_CRED_H */