Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 9 of 9) sorted by relevance

/security/selinux/ss/
A Dsidtab.c94 isid->entry.cache = NULL; in sidtab_set_initial()
575 cache = rcu_dereference_protected(entry->cache, in sidtab_sid2str_put()
577 if (cache) { in sidtab_sid2str_put()
583 cache = kmalloc(struct_size(cache, str, str_len), GFP_ATOMIC); in sidtab_sid2str_put()
584 if (!cache) in sidtab_sid2str_put()
596 cache->parent = entry; in sidtab_sid2str_put()
597 cache->len = str_len; in sidtab_sid2str_put()
601 rcu_assign_pointer(entry->cache, cache); in sidtab_sid2str_put()
619 cache = rcu_dereference(entry->cache); in sidtab_sid2str_get()
620 if (!cache) { in sidtab_sid2str_get()
[all …]
A Dsidtab.h26 struct sidtab_str_cache __rcu *cache; member
A Dservices.c3862 secattr->cache = netlbl_secattr_cache_alloc(GFP_ATOMIC); in security_netlbl_cache_add()
3863 if (secattr->cache == NULL) { in security_netlbl_cache_add()
3869 secattr->cache->free = kfree; in security_netlbl_cache_add()
3870 secattr->cache->data = sid_cache; in security_netlbl_cache_add()
3912 *sid = *(u32 *)secattr->cache->data; in security_netlbl_secattr_to_sid()
/security/selinux/
A DKconfig45 This option collects access vector cache statistics to
62 int "SELinux SID to context string translation cache size"
67 cache, which improves the performance of context to string
68 conversion. Setting this option to 0 disables the cache completely.
/security/smack/
A Dsmack_access.c534 skp->smk_netlabel.cache = netlbl_secattr_cache_alloc(GFP_ATOMIC); in smack_populate_secattr()
535 if (skp->smk_netlabel.cache != NULL) { in smack_populate_secattr()
537 skp->smk_netlabel.cache->free = NULL; in smack_populate_secattr()
538 skp->smk_netlabel.cache->data = skp; in smack_populate_secattr()
A Dsmack_lsm.c3989 return (struct smack_known *)sap->cache->data; in smack_from_secattr()
/security/apparmor/
A Dlsm.c2138 struct aa_local_cache *cache; in aa_get_buffer() local
2143 cache = get_cpu_ptr(&aa_local_buffers); in aa_get_buffer()
2144 if (!list_empty(&cache->head)) { in aa_get_buffer()
2147 cache->hold--; in aa_get_buffer()
2148 cache->count--; in aa_get_buffer()
2156 cache->hold += 1; in aa_get_buffer()
2201 struct aa_local_cache *cache; in aa_put_buffer() local
2208 if (!cache->hold) { in aa_put_buffer()
2222 cache->hold += 1; in aa_put_buffer()
2226 list_add(&aa_buf->list, &cache->head); in aa_put_buffer()
[all …]
/security/keys/
A DKconfig30 task_struct. The cache is cleared by exit and just prior to the
54 cache.
/security/
A DKconfig.hardening186 than "init_on_alloc" due to the negative cache effects of
322 bool "Limit randomization of structure layout to cache-lines"

Completed in 41 milliseconds