Lines Matching refs:ae
28 struct avc_entry ae;
262 if (!cur->ae.used)
265 cur->ae.used = 0;
288 static inline void avc_clear_avc_entry(struct avc_entry *ae)
290 ae->ssid = ae->tsid = ae->create_sid = NULL;
291 ae->tclass = 0;
292 ae->avd.allowed = ae->avd.decided = 0;
293 ae->avd.auditallow = ae->avd.auditdeny = 0;
294 ae->used = 0;
318 avc_clear_avc_entry(&new->ae);
319 new->ae.used = 1;
320 new->ae.ssid = ssid;
321 new->ae.tsid = tsid;
322 new->ae.tclass = tclass;
342 (ssid != cur->ae.ssid ||
343 tclass != cur->ae.tclass || tsid != cur->ae.tsid)) {
357 cur->ae.used = 1;
388 if (node && ((node->ae.avd.decided & requested) == requested)) {
391 aeref->ae = &node->ae;
406 * @ae: AVC entry
414 * sequence number @ae->avd.seqno is not less than the latest
422 struct avc_entry *ae, struct avc_entry_ref *aeref)
427 if (ae->avd.seqno < avc_cache.latest_notif) {
430 ae->avd.seqno, avc_cache.latest_notif);
442 node->ae.avd.allowed = ae->avd.allowed;
443 node->ae.avd.decided = ae->avd.decided;
444 node->ae.avd.auditallow = ae->avd.auditallow;
445 node->ae.avd.auditdeny = ae->avd.auditdeny;
446 node->ae.avd.seqno = ae->avd.seqno;
447 aeref->ae = &node->ae;
475 avc_clear_avc_entry(&tmp->ae);
697 struct avc_entry *ae;
714 ae = aeref->ae;
715 if (ae) {
716 if (ae->ssid == ssid &&
717 ae->tsid == tsid &&
718 ae->tclass == tclass &&
719 ((ae->avd.decided & requested) == requested)) {
721 ae->used = 1;
724 ae = 0;
728 if (!ae) {
741 ae = aeref->ae;
745 memcpy(avd, &ae->avd, sizeof(*avd));
747 denied = requested & ~(ae->avd.allowed);
751 (ae->avd.flags & SELINUX_AVD_FLAGS_PERMISSIVE))
752 ae->avd.allowed |= requested;
809 if (!aeref.ae->create_sid) {
820 aeref.ae->create_sid = *newsid;
823 *newsid = aeref.ae->create_sid;
872 node->ae.avd.allowed |= perms;
876 node->ae.avd.allowed &= ~perms;
879 node->ae.avd.auditallow |= perms;
882 node->ae.avd.auditallow &= ~perms;
885 node->ae.avd.auditdeny |= perms;
888 node->ae.avd.auditdeny &= ~perms;
906 if (avc_sidcmp(ssid, node->ae.ssid) &&
907 avc_sidcmp(tsid, node->ae.tsid) &&
908 tclass == node->ae.tclass) {