76 extern void crcopy_to(cred_t *, cred_t *);
77 extern cred_t *crdup(cred_t *);
78 extern void crdup_to(cred_t *, cred_t *);
79 extern cred_t *crgetcred(void);
80 extern void crset(struct proc *, cred_t *);
81 extern void crset_zone_privall(cred_t *);
82 extern int groupmember(gid_t, const cred_t *);
83 extern int supgroupmember(gid_t, const cred_t *);
84 extern int hasprocperm(const cred_t *, const cred_t *);
85 extern int prochasprocperm(struct proc *, struct proc *, const cred_t *);
86 extern int crcmp(const cred_t *, const cred_t *);
87 extern cred_t *zone_kcred(void);
88
89 extern uid_t crgetuid(const cred_t *);
90 extern uid_t crgetruid(const cred_t *);
91 extern uid_t crgetsuid(const cred_t *);
92 extern gid_t crgetgid(const cred_t *);
93 extern gid_t crgetrgid(const cred_t *);
94 extern gid_t crgetsgid(const cred_t *);
95 extern zoneid_t crgetzoneid(const cred_t *);
96 extern projid_t crgetprojid(const cred_t *);
97
98 extern cred_t *crgetmapped(const cred_t *);
99
100
101 extern const struct auditinfo_addr *crgetauinfo(const cred_t *);
102 extern struct auditinfo_addr *crgetauinfo_modifiable(cred_t *);
103
104 extern uint_t crgetref(const cred_t *);
105
106 extern const gid_t *crgetgroups(const cred_t *);
107 extern const gid_t *crgetggroups(const struct credgrp *);
108
109 extern int crgetngroups(const cred_t *);
110
111 /*
112 * Sets real, effective and/or saved uid/gid;
113 * -1 argument accepted as "no change".
114 */
115 extern int crsetresuid(cred_t *, uid_t, uid_t, uid_t);
|
76 extern void crcopy_to(cred_t *, cred_t *);
77 extern cred_t *crdup(cred_t *);
78 extern void crdup_to(cred_t *, cred_t *);
79 extern cred_t *crgetcred(void);
80 extern void crset(struct proc *, cred_t *);
81 extern void crset_zone_privall(cred_t *);
82 extern int groupmember(gid_t, const cred_t *);
83 extern int supgroupmember(gid_t, const cred_t *);
84 extern int hasprocperm(const cred_t *, const cred_t *);
85 extern int prochasprocperm(struct proc *, struct proc *, const cred_t *);
86 extern int crcmp(const cred_t *, const cred_t *);
87 extern cred_t *zone_kcred(void);
88
89 extern uid_t crgetuid(const cred_t *);
90 extern uid_t crgetruid(const cred_t *);
91 extern uid_t crgetsuid(const cred_t *);
92 extern gid_t crgetgid(const cred_t *);
93 extern gid_t crgetrgid(const cred_t *);
94 extern gid_t crgetsgid(const cred_t *);
95 extern zoneid_t crgetzoneid(const cred_t *);
96 extern zoneid_t crgetzonedid(const cred_t *);
97 extern projid_t crgetprojid(const cred_t *);
98
99 extern cred_t *crgetmapped(const cred_t *);
100
101
102 extern const struct auditinfo_addr *crgetauinfo(const cred_t *);
103 extern struct auditinfo_addr *crgetauinfo_modifiable(cred_t *);
104
105 extern uint_t crgetref(const cred_t *);
106
107 extern const gid_t *crgetgroups(const cred_t *);
108 extern const gid_t *crgetggroups(const struct credgrp *);
109
110 extern int crgetngroups(const cred_t *);
111
112 /*
113 * Sets real, effective and/or saved uid/gid;
114 * -1 argument accepted as "no change".
115 */
116 extern int crsetresuid(cred_t *, uid_t, uid_t, uid_t);
|