Home
last modified time | relevance | path

Searched refs:CR_FLAGS (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Dpriv.c240 CR_FLAGS(newcred) &= ~PRIV_USER; in priv_pr_spriv()
241 CR_FLAGS(newcred) |= (pii->val & PRIV_USER); in priv_pr_spriv()
266 if ((CR_FLAGS(newcred) & PRIV_AWARE) == 0) { in priv_pr_spriv()
267 CR_FLAGS(newcred) |= PRIV_AWARE; in priv_pr_spriv()
314 if ((CR_FLAGS(cr) & PRIV_AWARE) == 0) in priv_getset()
336 ii->val = CR_FLAGS(cr); in priv_getinfo()
639 if ((CR_FLAGS(cr) & (PRIV_AWARE|PRIV_AWARE_RESET)) == PRIV_AWARE) in priv_set_PA()
642 CR_FLAGS(cr) |= PRIV_AWARE; in priv_set_PA()
643 CR_FLAGS(cr) &= ~PRIV_AWARE_RESET; in priv_set_PA()
678 if (!(CR_FLAGS(cr) & PRIV_AWARE) || in priv_adjust_PA()
[all …]
H A Dpolicy.c257 if (priv_debug == 0 && (CR_FLAGS(cr) & PRIV_DEBUG) == 0) in priv_policy_errmsg()
319 if (CR_FLAGS(cr) & PRIV_DEBUG) { in priv_policy_errmsg()
347 if (!(CR_FLAGS(cr) & PRIV_XPOLICY)) in priv_policy_override()
365 if (CR_FLAGS(cr) & PRIV_PFEXEC) in priv_policy_override_set()
367 if (CR_FLAGS(cr) & PRIV_XPOLICY) { in priv_policy_override_set()
396 if (priv_debug || (CR_FLAGS(cr) & PRIV_DEBUG) || in priv_policy_err()
535 if (priv_debug || (CR_FLAGS(cr) & PRIV_DEBUG) || curthread->t_pre_sys) { in secpolicy_require_set()
565 if (priv_debug || (CR_FLAGS(cr) & PRIV_DEBUG) || in priv_policy_global()
H A Dexec.c364 if ((CR_FLAGS(p->p_cred) & PRIV_PFEXEC) != 0) { in exec_common()
725 if (!(CR_FLAGS(cred) & NET_MAC_AWARE_INHERIT)) in gexec()
726 CR_FLAGS(cred) &= ~NET_MAC_AWARE; in gexec()
727 CR_FLAGS(cred) &= ~NET_MAC_AWARE_INHERIT; in gexec()
1126 if ((CR_FLAGS(cr) & (PRIV_AWARE|PRIV_AWARE_INHERIT)) == PRIV_AWARE) in execsetid()
1193 if ((CR_FLAGS(cr) & NET_MAC_AWARE) || in execsetid()
1194 (CR_FLAGS(cr) & NET_MAC_AWARE_INHERIT)) in execsetid()
H A Dklpd.c459 if (CR_FLAGS(cr) & PRIV_XPOLICY) in klpd_reg()
960 CR_FLAGS(ncr) &= ~PRIV_PFEXEC; in pfexec_call()
H A Dcred.c134 CR_FLAGS(eph_zsd->eph_nobody) = 0; in get_ephemeral_zsd()
231 CR_FLAGS(kcred) = NET_MAC_AWARE; in cred_init()
/illumos-gate/usr/src/uts/common/sys/
H A Dpriv_impl.h66 #define CR_FLAGS(c) (CR_PRIVS(c)->crpriv_flags) macro
70 #define PRIV_EISAWARE(c) ((CR_FLAGS(c) & PRIV_AWARE) || (c)->cr_uid != 0)
71 #define PRIV_PISAWARE(c) ((CR_FLAGS(c) & PRIV_AWARE) || \
/illumos-gate/usr/src/uts/common/syscall/
H A Dppriv.c277 newflags = CR_FLAGS(pcr); in setpflags()
288 if (CR_FLAGS(pcr) == newflags) { in setpflags()
335 CR_FLAGS(cr) = newflags; in setpflags()
366 return ((CR_FLAGS(cr) & flag) != 0); in getpflags()
H A Duid.c138 CR_FLAGS(newcr) &= ~PRIV_PFEXEC; in setuid()
354 CR_FLAGS(newcr) &= ~PRIV_PFEXEC; in setreuid()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgcore.c1461 if ((CR_FLAGS(cr) & PRIV_AWARE) == 0) { in gcore_priv_getset()
1478 ii->val = CR_FLAGS(cr); in gcore_priv_getinfo()