Lines Matching refs:avd

48 	struct av_decision	avd;  member
384 struct av_decision *avd, in avc_xperms_audit_required() argument
392 denied = requested & ~avd->allowed; in avc_xperms_audit_required()
394 audited = denied & avd->auditdeny; in avc_xperms_audit_required()
402 audited = requested & avd->auditallow; in avc_xperms_audit_required()
415 u32 requested, struct av_decision *avd, in avc_xperms_audit() argument
423 requested, avd, xpd, perm, result, &denied); in avc_xperms_audit()
515 …d avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct av_decision *avd) in avc_node_populate() argument
520 memcpy(&node->ae.avd, avd, sizeof(node->ae.avd)); in avc_node_populate()
614 struct av_decision *avd, in avc_insert() argument
621 if (avc_latest_notif_update(avc, avd->seqno, 1)) in avc_insert()
631 avc_node_populate(node, ssid, tsid, tclass, avd); in avc_insert()
889 seqno == pos->ae.avd.seqno){ in avc_update_node()
905 avc_node_populate(node, ssid, tsid, tclass, &orig->ae.avd); in avc_update_node()
917 node->ae.avd.allowed |= perms; in avc_update_node()
923 node->ae.avd.allowed &= ~perms; in avc_update_node()
926 node->ae.avd.auditallow |= perms; in avc_update_node()
929 node->ae.avd.auditallow &= ~perms; in avc_update_node()
932 node->ae.avd.auditdeny |= perms; in avc_update_node()
935 node->ae.avd.auditdeny &= ~perms; in avc_update_node()
1013 u16 tclass, struct av_decision *avd, in avc_compute_av() argument
1018 security_compute_av(state, ssid, tsid, tclass, avd, &xp_node->xp); in avc_compute_av()
1020 return avc_insert(state->avc, ssid, tsid, tclass, avd, xp_node); in avc_compute_av()
1027 struct av_decision *avd) in avc_denied() argument
1033 !(avd->flags & AVD_FLAGS_PERMISSIVE)) in avc_denied()
1037 xperm, ssid, tsid, tclass, avd->seqno, NULL, flags); in avc_denied()
1053 struct av_decision avd; in avc_has_extended_perms() local
1072 node = avc_compute_av(state, ssid, tsid, tclass, &avd, xp_node); in avc_has_extended_perms()
1074 memcpy(&avd, &node->ae.avd, sizeof(avd)); in avc_has_extended_perms()
1092 avd.allowed &= ~requested; in avc_has_extended_perms()
1100 driver, xperm, ssid, tsid, tclass, avd.seqno, in avc_has_extended_perms()
1108 avd.allowed &= ~requested; in avc_has_extended_perms()
1111 denied = requested & ~(avd.allowed); in avc_has_extended_perms()
1114 driver, xperm, AVC_EXTENDED_PERMS, &avd); in avc_has_extended_perms()
1119 &avd, xpd, xperm, rc, ad); in avc_has_extended_perms()
1149 struct av_decision *avd) in avc_has_perm_noaudit() argument
1163 node = avc_compute_av(state, ssid, tsid, tclass, avd, &xp_node); in avc_has_perm_noaudit()
1165 memcpy(avd, &node->ae.avd, sizeof(*avd)); in avc_has_perm_noaudit()
1167 denied = requested & ~(avd->allowed); in avc_has_perm_noaudit()
1170 flags, avd); in avc_has_perm_noaudit()
1195 struct av_decision avd; in avc_has_perm() local
1199 &avd); in avc_has_perm()
1201 rc2 = avc_audit(state, ssid, tsid, tclass, requested, &avd, rc, in avc_has_perm()