Lines Matching refs:cred_t

48 typedef struct cred cred_t;  typedef
70 extern void crhold(cred_t *);
71 extern void crfree(cred_t *);
72 extern cred_t *cralloc(void); /* all but ref uninitialized */
73 extern cred_t *cralloc_ksid(void); /* cralloc() + ksid alloc'ed */
74 extern cred_t *crget(void); /* initialized */
75 extern cred_t *crcopy(cred_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);
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 *);
98 extern cred_t *crgetmapped(const cred_t *);
101 extern const struct auditinfo_addr *crgetauinfo(const cred_t *);
102 extern struct auditinfo_addr *crgetauinfo_modifiable(cred_t *);
104 extern uint_t crgetref(const cred_t *);
106 extern const gid_t *crgetgroups(const cred_t *);
109 extern int crgetngroups(const cred_t *);
115 extern int crsetresuid(cred_t *, uid_t, uid_t, uid_t);
116 extern int crsetresgid(cred_t *, gid_t, gid_t, gid_t);
122 extern int crsetugid(cred_t *, uid_t, gid_t);
127 extern int crsetgroups(cred_t *, int, gid_t *);
130 extern void crsetcredgrp(cred_t *, struct credgrp *);
136 extern void crsetzone(cred_t *, struct zone *);
137 extern struct zone *crgetzone(const cred_t *);
142 extern void crsetprojid(cred_t *, projid_t);
147 extern cred_t *crnetadjust(cred_t *);
152 extern void cred2prcred(const cred_t *, struct prcred *);
158 extern struct ts_label_s *crgetlabel(const cred_t *);
159 extern boolean_t crisremote(const cred_t *);
176 extern void crsetsid(cred_t *, struct ksid *, int);
177 extern void crsetsidlist(cred_t *, struct ksidlist *);
179 extern struct ksid *crgetsid(const cred_t *, int);
180 extern struct ksidlist *crgetsidlist(const cred_t *);
182 extern int crsetpriv(cred_t *, ...);
184 extern struct credklpd *crgetcrklpd(const cred_t *);
185 extern void crsetcrklpd(cred_t *, struct credklpd *);