Lines Matching refs:avd
23 struct av_decision avd; member
433 if (node && ((node->ae.avd.decided & requested) == requested)) { in avc_lookup()
472 if (ae->avd.seqno < avc_cache.latest_notif) { in avc_insert()
475 ae->avd.seqno, avc_cache.latest_notif); in avc_insert()
487 memcpy(&node->ae.avd, &ae->avd, sizeof(ae->avd)); in avc_insert()
696 struct av_decision *avd, int result, void *a) in avc_audit() argument
700 denied = requested & ~avd->allowed; in avc_audit()
702 audited = denied & avd->auditdeny; in avc_audit()
706 audited = requested & avd->auditallow; in avc_audit()
739 static void avd_init(struct av_decision *avd) in hidden_def()
741 avd->allowed = 0; in hidden_def()
742 avd->auditallow = 0; in hidden_def()
743 avd->auditdeny = 0xffffffff; in hidden_def()
744 avd->seqno = avc_cache.latest_notif; in hidden_def()
745 avd->flags = 0; in hidden_def()
752 struct avc_entry_ref *aeref, struct av_decision *avd) in avc_has_perm_noaudit() argument
760 if (avd) in avc_has_perm_noaudit()
761 avd_init(avd); in avc_has_perm_noaudit()
779 ((ae->avd.decided & requested) == requested)) { in avc_has_perm_noaudit()
794 &entry.avd); in avc_has_perm_noaudit()
808 if (avd) in avc_has_perm_noaudit()
809 memcpy(avd, &ae->avd, sizeof(*avd)); in avc_has_perm_noaudit()
811 denied = requested & ~(ae->avd.allowed); in avc_has_perm_noaudit()
815 (ae->avd.flags & SELINUX_AVD_FLAGS_PERMISSIVE)) in avc_has_perm_noaudit()
816 ae->avd.allowed |= requested; in avc_has_perm_noaudit()
834 struct av_decision avd; in hidden_def() local
837 rc = avc_has_perm_noaudit(ssid, tsid, tclass, requested, aeref, &avd); in hidden_def()
839 avc_audit(ssid, tsid, tclass, requested, &avd, rc, auditdata); in hidden_def()
862 tclass, 0, &entry.avd); in avc_compute_create()
954 node->ae.avd.allowed |= perms; in avc_update_node()
958 node->ae.avd.allowed &= ~perms; in avc_update_node()
961 node->ae.avd.auditallow |= perms; in avc_update_node()
964 node->ae.avd.auditallow &= ~perms; in avc_update_node()
967 node->ae.avd.auditdeny |= perms; in avc_update_node()
970 node->ae.avd.auditdeny &= ~perms; in avc_update_node()