Home
last modified time | relevance | path

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

/titanic_44/usr/src/uts/common/os/
H A Dpriv.c241 CR_FLAGS(newcred) &= ~PRIV_USER; in priv_pr_spriv()
242 CR_FLAGS(newcred) |= (pii->val & PRIV_USER); in priv_pr_spriv()
267 if ((CR_FLAGS(newcred) & PRIV_AWARE) == 0) { in priv_pr_spriv()
268 CR_FLAGS(newcred) |= PRIV_AWARE; in priv_pr_spriv()
315 if ((CR_FLAGS(cr) & PRIV_AWARE) == 0) in priv_getset()
337 ii->val = CR_FLAGS(cr); in priv_getinfo()
640 if ((CR_FLAGS(cr) & (PRIV_AWARE|PRIV_AWARE_RESET)) == PRIV_AWARE) in priv_set_PA()
643 CR_FLAGS(cr) |= PRIV_AWARE; in priv_set_PA()
644 CR_FLAGS(cr) &= ~PRIV_AWARE_RESET; in priv_set_PA()
679 if (!(CR_FLAGS(cr) & PRIV_AWARE) || in priv_adjust_PA()
[all …]
H A Dpolicy.c241 if (priv_debug == 0 && (CR_FLAGS(cr) & PRIV_DEBUG) == 0) in priv_policy_errmsg()
303 if (CR_FLAGS(cr) & PRIV_DEBUG) { in priv_policy_errmsg()
331 if (!(CR_FLAGS(cr) & PRIV_XPOLICY)) in priv_policy_override()
349 if (CR_FLAGS(cr) & PRIV_PFEXEC) in priv_policy_override_set()
351 if (CR_FLAGS(cr) & PRIV_XPOLICY) { in priv_policy_override_set()
380 if (priv_debug || (CR_FLAGS(cr) & PRIV_DEBUG) || in priv_policy_err()
519 if (priv_debug || (CR_FLAGS(cr) & PRIV_DEBUG) || curthread->t_pre_sys) { in secpolicy_require_set()
549 if (priv_debug || (CR_FLAGS(cr) & PRIV_DEBUG) || in priv_policy_global()
H A Dexec.c264 if ((CR_FLAGS(p->p_cred) & PRIV_PFEXEC) != 0) { in exec_common()
622 if (!(CR_FLAGS(cred) & NET_MAC_AWARE_INHERIT)) in gexec()
623 CR_FLAGS(cred) &= ~NET_MAC_AWARE; in gexec()
624 CR_FLAGS(cred) &= ~NET_MAC_AWARE_INHERIT; in gexec()
1013 if ((CR_FLAGS(cr) & (PRIV_AWARE|PRIV_AWARE_INHERIT)) == PRIV_AWARE) in execsetid()
1080 if ((CR_FLAGS(cr) & NET_MAC_AWARE) || in execsetid()
1081 (CR_FLAGS(cr) & NET_MAC_AWARE_INHERIT)) in execsetid()
H A Dklpd.c457 if (CR_FLAGS(cr) & PRIV_XPOLICY) in klpd_reg()
950 CR_FLAGS(ncr) &= ~PRIV_PFEXEC; in pfexec_call()
H A Dcred.c133 CR_FLAGS(eph_zsd->eph_nobody) = 0; in get_ephemeral_zsd()
228 CR_FLAGS(kcred) = NET_MAC_AWARE; in cred_init()
/titanic_44/usr/src/uts/common/sys/
H A Dpriv_impl.h68 #define CR_FLAGS(c) (CR_PRIVS(c)->crpriv_flags) macro
72 #define PRIV_EISAWARE(c) ((CR_FLAGS(c) & PRIV_AWARE) || (c)->cr_uid != 0)
73 #define PRIV_PISAWARE(c) ((CR_FLAGS(c) & PRIV_AWARE) || \
/titanic_44/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()
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dgcore.c1460 if ((CR_FLAGS(cr) & PRIV_AWARE) == 0) { in gcore_priv_getset()
1477 ii->val = CR_FLAGS(cr); in gcore_priv_getinfo()