Lines Matching refs:cr
926 cred_t *cr, *s_cr = state->dts_cred.dcr_cred;
935 if ((cr = CRED()) != NULL &&
937 if ((cr = dtrace_CRED()) != NULL &&
939 s_cr->cr_uid == cr->cr_uid &&
940 s_cr->cr_uid == cr->cr_ruid &&
941 s_cr->cr_uid == cr->cr_suid &&
942 s_cr->cr_gid == cr->cr_gid &&
943 s_cr->cr_gid == cr->cr_rgid &&
944 s_cr->cr_gid == cr->cr_sgid)
958 cred_t *cr, *s_cr = state->dts_cred.dcr_cred;
967 if ((cr = CRED()) != NULL &&
968 s_cr->cr_zone == cr->cr_zone)
5482 cred_t *cr;
5490 if ((cr = CRED()) == NULL ||
5492 if ((cr = dtrace_CRED()) == NULL ||
5494 s_cr->cr_uid != cr->cr_uid ||
5495 s_cr->cr_uid != cr->cr_ruid ||
5496 s_cr->cr_uid != cr->cr_suid ||
5497 s_cr->cr_gid != cr->cr_gid ||
5498 s_cr->cr_gid != cr->cr_rgid ||
5499 s_cr->cr_gid != cr->cr_sgid ||
5510 cred_t *cr;
5517 if ((cr = CRED()) == NULL ||
5519 cr->cr_zone->zone_id)
6270 dtrace_cred2priv(cred_t *cr, uint32_t *privp, uid_t *uidp, zoneid_t *zoneidp)
6274 if (cr == NULL || PRIV_POLICY_ONLY(cr, PRIV_ALL, B_FALSE)) {
6280 *uidp = crgetuid(cr);
6281 *zoneidp = crgetzoneid(cr);
6284 if (PRIV_POLICY_ONLY(cr, PRIV_DTRACE_KERNEL, B_FALSE))
6286 else if (PRIV_POLICY_ONLY(cr, PRIV_DTRACE_USER, B_FALSE))
6288 if (PRIV_POLICY_ONLY(cr, PRIV_DTRACE_PROC, B_FALSE))
6290 if (PRIV_POLICY_ONLY(cr, PRIV_PROC_OWNER, B_FALSE))
6292 if (PRIV_POLICY_ONLY(cr, PRIV_PROC_ZONE, B_FALSE))
6718 cred_t *cr, const dtrace_pops_t *pops, void *arg, dtrace_provider_id_t *idp)
6773 if (cr != NULL) {
6774 provider->dtpv_priv.dtpp_uid = crgetuid(cr);
6775 provider->dtpv_priv.dtpp_zoneid = crgetzoneid(cr);
7772 cred_t *cr)
7779 kcheck = cr == NULL ||
7780 PRIV_POLICY_ONLY(cr, PRIV_DTRACE_KERNEL, B_FALSE) == 0;
11162 cred_t *cr)
11322 if (dtrace_difo_validate(dp, vstate, DIF_DIR_NREGS, cr) != 0)
11340 cred_t *cr)
11344 if ((dp = dtrace_dof_difo(dof, sec, vstate, cr)) == NULL)
11352 cred_t *cr)
11460 act->dtad_difo = dtrace_dof_difo(dof, difosec, vstate, cr);
11480 cred_t *cr)
11515 if ((pred = dtrace_dof_predicate(dof, sec, vstate, cr)) == NULL)
11526 ep->dted_action = dtrace_dof_actdesc(dof, sec, vstate, cr);
11619 dtrace_dof_slurp(dof_hdr_t *dof, dtrace_vstate_t *vstate, cred_t *cr,
11809 if ((ep = dtrace_dof_ecbdesc(dof, sec, vstate, cr)) == NULL) {
11817 ep = dtrace_dof_ecbdesc(dof, sec, vstate, cr);
12077 dtrace_state_create(dev_t *devp, cred_t *cr)
12184 if (cr == NULL || PRIV_POLICY_ONLY(cr, PRIV_ALL, B_FALSE)) {
12195 crhold(cr);
12196 state->dts_cred.dcr_cred = cr;
12202 if (PRIV_POLICY_ONLY(cr, PRIV_DTRACE_USER, B_FALSE) ||
12203 PRIV_POLICY_ONLY(cr, PRIV_DTRACE_PROC, B_FALSE)) {
12213 if (PRIV_POLICY_ONLY(cr, PRIV_DTRACE_USER, B_FALSE)) {
12214 if (PRIV_POLICY_ONLY(cr, PRIV_PROC_OWNER, B_FALSE)) {
12222 if (PRIV_POLICY_ONLY(cr, PRIV_PROC_ZONE, B_FALSE)) {
12236 if (priv_isequalset(priv_getset(cr, PRIV_EFFECTIVE),
12237 cr->cr_zone->zone_privset)) {
12254 if (PRIV_POLICY_ONLY(cr, PRIV_DTRACE_KERNEL, B_FALSE)) {
12269 if (PRIV_POLICY_ONLY(cr, PRIV_PROC_OWNER, B_FALSE))
12277 if (PRIV_POLICY_ONLY(cr, PRIV_PROC_ZONE, B_FALSE))
12287 if (priv_isequalset(priv_getset(cr, PRIV_EFFECTIVE),
12288 cr->cr_zone->zone_privset)) {
12305 if (PRIV_POLICY_ONLY(cr, PRIV_DTRACE_PROC, B_FALSE)) {
12306 if (PRIV_POLICY_ONLY(cr, PRIV_PROC_OWNER, B_FALSE))
12310 if (PRIV_POLICY_ONLY(cr, PRIV_PROC_ZONE, B_FALSE))
15306 dtrace_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv)
15570 if (dtrace_dof_slurp(dof, vstate, cr, &enab, 0, B_TRUE) != 0) {
15659 dtrace_cred2priv(cr, &priv, &uid, &zoneid);