Lines Matching defs:tsolinfo

63 #include "tsolinfo.h"
91 set_audit_flags(TsolInfoPtr tsolinfo)
93 if (tsolinfo->flags & TSOL_AUDITEVENT)
94 tsolinfo->flags &= ~TSOL_AUDITEVENT;
95 if (!(tsolinfo->flags & TSOL_DOXAUDIT))
96 tsolinfo->flags |= TSOL_DOXAUDIT;
101 unset_audit_flags(TsolInfoPtr tsolinfo)
103 if (tsolinfo->flags & TSOL_AUDITEVENT)
104 tsolinfo->flags &= ~TSOL_AUDITEVENT;
105 if (tsolinfo->flags & TSOL_DOXAUDIT)
106 tsolinfo->flags &= ~TSOL_DOXAUDIT;
116 client_has_privilege(TsolInfoPtr tsolinfo, priv_set_t *priv)
119 if (tsolinfo->privs == NULL) {
123 if (priv_issubset(priv, tsolinfo->privs)) {
124 if (tsolinfo->flags & TSOL_AUDITEVENT) {
135 tsol_check_policy(TsolInfoPtr tsolinfo, TsolResPtr tsolres,
142 if (HasTrustedPath(tsolinfo)) {
152 if (blequal(tsolinfo->sl, tsolres->sl) ||
156 bldominates(tsolinfo->sl, tsolres->sl)) ||
157 client_has_privilege(tsolinfo, pset_win_mac_read) ||
158 HasTrustedPath(tsolinfo)) {
167 if (blequal(tsolinfo->sl, tsolres->sl) ||
168 client_has_privilege(tsolinfo, pset_win_mac_write)) {
179 if ((tsolinfo->uid == tsolres->uid) ||
184 client_has_privilege(tsolinfo, pset_win_dac_read)) {
193 if ((tsolinfo->uid == tsolres->uid) ||
194 (tsolinfo->uid == OwnerUID &&
196 client_has_privilege(tsolinfo, pset_win_dac_write)) {
212 tsolinfo->pname, xsltos(tsolinfo->sl), tsolinfo->uid,
295 HasWinSelection(TsolInfoPtr tsolinfo)
297 return (priv_issubset(pset_win_selection, (tsolinfo->privs)));
317 TsolInfoPtr tsolinfo = GetClientTsolInfo(client);
347 tsolres->sl= tsolinfo->sl;
348 tsolres->uid = tsolinfo->uid;
349 tsolres->pid = tsolinfo->pid;
399 client_has_privilege(tsolinfo, pset_win_config)) {
439 status = tsol_check_policy(tsolinfo, tsolres, flags, reqtype);
449 status = tsol_check_policy(tsolinfo, tsolres, flags, reqtype);
461 if (tsolinfo->flags & TSOL_AUDITEVENT) {
462 set_audit_flags(tsolinfo);
484 tsolinfo = GetClientTsolInfo(client);
488 tsolinfo->pname,
512 TsolInfoPtr tsolinfo = GetClientTsolInfo(client);
553 (!client_has_privilege(tsolinfo, pset_win_dac_read))) {
562 (!client_has_privilege(tsolinfo, pset_win_dac_write))) {
568 if (tsolinfo->flags & TSOL_AUDITEVENT) {
569 set_audit_flags(tsolinfo);
570 auditwrite(object_code, (ulong_t)id, tsolinfo->uid,
585 tsolinfo = GetClientTsolInfo(client);
589 tsolinfo->pname,
608 TsolInfoPtr tsolinfo = GetClientTsolInfo(client);
626 client_has_privilege(tsolinfo,
636 client_has_privilege(tsolinfo,
646 if (tsolinfo->flags & TSOL_AUDITEVENT && object_code != 0) {
647 set_audit_flags(tsolinfo);
649 tsolinfo->uid,
650 AW_SLABEL, tsolinfo->sl,
672 tsolinfo = GetClientTsolInfo(client);
676 tsolinfo->pname,
694 TsolInfoPtr tsolinfo = GetClientTsolInfo(client);
708 client_has_privilege(tsolinfo, pset_win_config)) {
713 if (tsolinfo->flags & TSOL_AUDITEVENT) {
714 set_audit_flags(tsolinfo);
716 tsolinfo->uid,
717 AW_SLABEL, tsolinfo->sl,
732 tsolinfo = GetClientTsolInfo(client);
736 tsolinfo->pname,
753 TsolInfoPtr tsolinfo = GetClientTsolInfo(client);
786 client_has_privilege(tsolinfo, pset_win_devices))
788 if (tsolinfo->flags & TSOL_AUDITEVENT) {
789 set_audit_flags(tsolinfo);
806 tsolinfo = GetClientTsolInfo(client);
810 tsolinfo->pname,