avc 2271 include/linux/mm.h #define anon_vma_interval_tree_foreach(avc, root, start, last) \ avc 2272 include/linux/mm.h for (avc = anon_vma_interval_tree_iter_first(root, start, last); \ avc 2273 include/linux/mm.h avc; avc = anon_vma_interval_tree_iter_next(avc, start, last)) avc 61 mm/interval_tree.c static inline unsigned long avc_start_pgoff(struct anon_vma_chain *avc) avc 63 mm/interval_tree.c return vma_start_pgoff(avc->vma); avc 66 mm/interval_tree.c static inline unsigned long avc_last_pgoff(struct anon_vma_chain *avc) avc 68 mm/interval_tree.c return vma_last_pgoff(avc->vma); avc 396 mm/mmap.c struct anon_vma_chain *avc; avc 400 mm/mmap.c list_for_each_entry(avc, &vma->anon_vma_chain, same_vma) avc 401 mm/mmap.c anon_vma_interval_tree_verify(avc); avc 511 mm/mmap.c struct anon_vma_chain *avc; avc 513 mm/mmap.c list_for_each_entry(avc, &vma->anon_vma_chain, same_vma) avc 514 mm/mmap.c anon_vma_interval_tree_remove(avc, &avc->anon_vma->rb_root); avc 520 mm/mmap.c struct anon_vma_chain *avc; avc 522 mm/mmap.c list_for_each_entry(avc, &vma->anon_vma_chain, same_vma) avc 523 mm/mmap.c anon_vma_interval_tree_insert(avc, &avc->anon_vma->rb_root); avc 3550 mm/mmap.c struct anon_vma_chain *avc; avc 3576 mm/mmap.c list_for_each_entry(avc, &vma->anon_vma_chain, same_vma) avc 3577 mm/mmap.c vm_lock_anon_vma(mm, avc->anon_vma); avc 3630 mm/mmap.c struct anon_vma_chain *avc; avc 3637 mm/mmap.c list_for_each_entry(avc, &vma->anon_vma_chain, same_vma) avc 3638 mm/mmap.c vm_unlock_anon_vma(avc->anon_vma); avc 139 mm/rmap.c struct anon_vma_chain *avc, avc 142 mm/rmap.c avc->vma = vma; avc 143 mm/rmap.c avc->anon_vma = anon_vma; avc 144 mm/rmap.c list_add(&avc->same_vma, &vma->anon_vma_chain); avc 145 mm/rmap.c anon_vma_interval_tree_insert(avc, &anon_vma->rb_root); avc 180 mm/rmap.c struct anon_vma_chain *avc; avc 184 mm/rmap.c avc = anon_vma_chain_alloc(GFP_KERNEL); avc 185 mm/rmap.c if (!avc) avc 202 mm/rmap.c anon_vma_chain_link(vma, avc, anon_vma); avc 206 mm/rmap.c avc = NULL; avc 213 mm/rmap.c if (unlikely(avc)) avc 214 mm/rmap.c anon_vma_chain_free(avc); avc 219 mm/rmap.c anon_vma_chain_free(avc); avc 264 mm/rmap.c struct anon_vma_chain *avc, *pavc; avc 270 mm/rmap.c avc = anon_vma_chain_alloc(GFP_NOWAIT | __GFP_NOWARN); avc 271 mm/rmap.c if (unlikely(!avc)) { avc 274 mm/rmap.c avc = anon_vma_chain_alloc(GFP_KERNEL); avc 275 mm/rmap.c if (!avc) avc 280 mm/rmap.c anon_vma_chain_link(dst, avc, anon_vma); avc 318 mm/rmap.c struct anon_vma_chain *avc; avc 345 mm/rmap.c avc = anon_vma_chain_alloc(GFP_KERNEL); avc 346 mm/rmap.c if (!avc) avc 364 mm/rmap.c anon_vma_chain_link(vma, avc, anon_vma); avc 379 mm/rmap.c struct anon_vma_chain *avc, *next; avc 386 mm/rmap.c list_for_each_entry_safe(avc, next, &vma->anon_vma_chain, same_vma) { avc 387 mm/rmap.c struct anon_vma *anon_vma = avc->anon_vma; avc 390 mm/rmap.c anon_vma_interval_tree_remove(avc, &anon_vma->rb_root); avc 401 mm/rmap.c list_del(&avc->same_vma); avc 402 mm/rmap.c anon_vma_chain_free(avc); avc 413 mm/rmap.c list_for_each_entry_safe(avc, next, &vma->anon_vma_chain, same_vma) { avc 414 mm/rmap.c struct anon_vma *anon_vma = avc->anon_vma; avc 419 mm/rmap.c list_del(&avc->same_vma); avc 420 mm/rmap.c anon_vma_chain_free(avc); avc 1817 mm/rmap.c struct anon_vma_chain *avc; avc 1831 mm/rmap.c anon_vma_interval_tree_foreach(avc, &anon_vma->rb_root, avc 1833 mm/rmap.c struct vm_area_struct *vma = avc->vma; avc 93 security/selinux/avc.c void selinux_avc_init(struct selinux_avc **avc) avc 104 security/selinux/avc.c *avc = &selinux_avc; avc 107 security/selinux/avc.c unsigned int avc_get_cache_threshold(struct selinux_avc *avc) avc 109 security/selinux/avc.c return avc->avc_cache_threshold; avc 112 security/selinux/avc.c void avc_set_cache_threshold(struct selinux_avc *avc, avc 115 security/selinux/avc.c avc->avc_cache_threshold = cache_threshold; avc 150 security/selinux/avc.c int avc_get_hash_stats(struct selinux_avc *avc, char *page) avc 161 security/selinux/avc.c head = &avc->avc_cache.slots[i]; avc 176 security/selinux/avc.c atomic_read(&avc->avc_cache.active_nodes), avc 438 security/selinux/avc.c static void avc_node_delete(struct selinux_avc *avc, struct avc_node *node) avc 442 security/selinux/avc.c atomic_dec(&avc->avc_cache.active_nodes); avc 445 security/selinux/avc.c static void avc_node_kill(struct selinux_avc *avc, struct avc_node *node) avc 450 security/selinux/avc.c atomic_dec(&avc->avc_cache.active_nodes); avc 453 security/selinux/avc.c static void avc_node_replace(struct selinux_avc *avc, avc 458 security/selinux/avc.c atomic_dec(&avc->avc_cache.active_nodes); avc 461 security/selinux/avc.c static inline int avc_reclaim_node(struct selinux_avc *avc) avc 470 security/selinux/avc.c hvalue = atomic_inc_return(&avc->avc_cache.lru_hint) & avc 472 security/selinux/avc.c head = &avc->avc_cache.slots[hvalue]; avc 473 security/selinux/avc.c lock = &avc->avc_cache.slots_lock[hvalue]; avc 480 security/selinux/avc.c avc_node_delete(avc, node); avc 496 security/selinux/avc.c static struct avc_node *avc_alloc_node(struct selinux_avc *avc) avc 507 security/selinux/avc.c if (atomic_inc_return(&avc->avc_cache.active_nodes) > avc 508 security/selinux/avc.c avc->avc_cache_threshold) avc 509 security/selinux/avc.c avc_reclaim_node(avc); avc 523 security/selinux/avc.c static inline struct avc_node *avc_search_node(struct selinux_avc *avc, avc 531 security/selinux/avc.c head = &avc->avc_cache.slots[hvalue]; avc 556 security/selinux/avc.c static struct avc_node *avc_lookup(struct selinux_avc *avc, avc 562 security/selinux/avc.c node = avc_search_node(avc, ssid, tsid, tclass); avc 571 security/selinux/avc.c static int avc_latest_notif_update(struct selinux_avc *avc, avc 580 security/selinux/avc.c if (seqno < avc->avc_cache.latest_notif) { avc 582 security/selinux/avc.c seqno, avc->avc_cache.latest_notif); avc 586 security/selinux/avc.c if (seqno > avc->avc_cache.latest_notif) avc 587 security/selinux/avc.c avc->avc_cache.latest_notif = seqno; avc 612 security/selinux/avc.c static struct avc_node *avc_insert(struct selinux_avc *avc, avc 623 security/selinux/avc.c if (avc_latest_notif_update(avc, avd->seqno, 1)) avc 626 security/selinux/avc.c node = avc_alloc_node(avc); avc 632 security/selinux/avc.c avc_node_kill(avc, node); avc 637 security/selinux/avc.c head = &avc->avc_cache.slots[hvalue]; avc 638 security/selinux/avc.c lock = &avc->avc_cache.slots_lock[hvalue]; avc 644 security/selinux/avc.c avc_node_replace(avc, node, pos); avc 828 security/selinux/avc.c static int avc_update_node(struct selinux_avc *avc, avc 855 security/selinux/avc.c node = avc_alloc_node(avc); avc 864 security/selinux/avc.c head = &avc->avc_cache.slots[hvalue]; avc 865 security/selinux/avc.c lock = &avc->avc_cache.slots_lock[hvalue]; avc 881 security/selinux/avc.c avc_node_kill(avc, node); avc 894 security/selinux/avc.c avc_node_kill(avc, node); avc 925 security/selinux/avc.c avc_node_replace(avc, node, orig); avc 935 security/selinux/avc.c static void avc_flush(struct selinux_avc *avc) avc 944 security/selinux/avc.c head = &avc->avc_cache.slots[i]; avc 945 security/selinux/avc.c lock = &avc->avc_cache.slots_lock[i]; avc 954 security/selinux/avc.c avc_node_delete(avc, node); avc 964 security/selinux/avc.c int avc_ss_reset(struct selinux_avc *avc, u32 seqno) avc 969 security/selinux/avc.c avc_flush(avc); avc 981 security/selinux/avc.c avc_latest_notif_update(avc, seqno, 0); avc 1004 security/selinux/avc.c return avc_insert(state->avc, ssid, tsid, tclass, avd, xp_node); avc 1020 security/selinux/avc.c avc_update_node(state->avc, AVC_CALLBACK_GRANT, requested, driver, avc 1054 security/selinux/avc.c node = avc_lookup(state->avc, ssid, tsid, tclass); avc 1083 security/selinux/avc.c avc_update_node(state->avc, AVC_CALLBACK_ADD_XPERMS, requested, avc 1145 security/selinux/avc.c node = avc_lookup(state->avc, ssid, tsid, tclass); avc 1213 security/selinux/avc.c return state->avc->avc_cache.latest_notif; avc 1230 security/selinux/avc.c avc_flush(selinux_state.avc); avc 7077 security/selinux/hooks.c selinux_avc_init(&selinux_state.avc); avc 185 security/selinux/include/avc.h int avc_get_hash_stats(struct selinux_avc *avc, char *page); avc 186 security/selinux/include/avc.h unsigned int avc_get_cache_threshold(struct selinux_avc *avc); avc 187 security/selinux/include/avc.h void avc_set_cache_threshold(struct selinux_avc *avc, avc 13 security/selinux/include/avc_ss.h int avc_ss_reset(struct selinux_avc *avc, u32 seqno); avc 108 security/selinux/include/security.h struct selinux_avc *avc; avc 113 security/selinux/include/security.h void selinux_avc_init(struct selinux_avc **avc); avc 178 security/selinux/selinuxfs.c avc_ss_reset(state->avc, 0); avc 1424 security/selinux/selinuxfs.c avc_get_cache_threshold(state->avc)); avc 1461 security/selinux/selinuxfs.c avc_set_cache_threshold(state->avc, new_value); avc 1481 security/selinux/selinuxfs.c length = avc_get_hash_stats(state->avc, page); avc 2140 security/selinux/ss/services.c avc_ss_reset(state->avc, seqno); avc 2221 security/selinux/ss/services.c avc_ss_reset(state->avc, seqno); avc 2897 security/selinux/ss/services.c avc_ss_reset(state->avc, seqno);