Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 14 of 14) sorted by relevance

/security/selinux/
Dnetnode.c116 unsigned int idx; in sel_netnode_find() local
121 idx = sel_netnode_hashfn_ipv4(*(__be32 *)addr); in sel_netnode_find()
124 idx = sel_netnode_hashfn_ipv6(addr); in sel_netnode_find()
131 list_for_each_entry_rcu(node, &sel_netnode_hash[idx].list, list) in sel_netnode_find()
158 unsigned int idx; in sel_netnode_insert() local
162 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); in sel_netnode_insert()
165 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6); in sel_netnode_insert()
173 list_add_rcu(&node->list, &sel_netnode_hash[idx].list); in sel_netnode_insert()
174 if (sel_netnode_hash[idx].size == SEL_NETNODE_HASH_BKT_LIMIT) { in sel_netnode_insert()
177 rcu_dereference_protected(sel_netnode_hash[idx].list.prev, in sel_netnode_insert()
[all …]
Dnetport.c96 unsigned int idx; in sel_netport_find() local
99 idx = sel_netport_hashfn(pnum); in sel_netport_find()
100 list_for_each_entry_rcu(port, &sel_netport_hash[idx].list, list) in sel_netport_find()
117 unsigned int idx; in sel_netport_insert() local
121 idx = sel_netport_hashfn(port->psec.port); in sel_netport_insert()
122 list_add_rcu(&port->list, &sel_netport_hash[idx].list); in sel_netport_insert()
123 if (sel_netport_hash[idx].size == SEL_NETPORT_HASH_BKT_LIMIT) { in sel_netport_insert()
127 sel_netport_hash[idx].list.prev, in sel_netport_insert()
133 sel_netport_hash[idx].size++; in sel_netport_insert()
222 unsigned int idx; in sel_netport_flush() local
[all …]
Dnetif.c74 int idx = sel_netif_hashfn(ns, ifindex); in sel_netif_find() local
77 list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list) in sel_netif_find()
96 int idx; in sel_netif_insert() local
101 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); in sel_netif_insert()
102 list_add_rcu(&netif->list, &sel_netif_hash[idx]); in sel_netif_insert()
251 int idx; in sel_netif_flush() local
255 for (idx = 0; idx < SEL_NETIF_HASH_SIZE; idx++) in sel_netif_flush()
256 list_for_each_entry(netif, &sel_netif_hash[idx], list) in sel_netif_flush()
Dselinuxfs.c1383 static struct avc_cache_stats *sel_avc_get_stat_idx(loff_t *idx) in sel_avc_get_stat_idx() argument
1387 for (cpu = *idx; cpu < nr_cpu_ids; ++cpu) { in sel_avc_get_stat_idx()
1390 *idx = cpu + 1; in sel_avc_get_stat_idx()
/security/tomoyo/
Dmemory.c93 const u8 idx) in tomoyo_get_group() argument
100 if (!tomoyo_correct_word(group_name) || idx >= TOMOYO_MAX_GROUP) in tomoyo_get_group()
107 list = &param->ns->group_list[idx]; in tomoyo_get_group()
192 int idx; in tomoyo_mm_init() local
193 for (idx = 0; idx < TOMOYO_MAX_HASH; idx++) in tomoyo_mm_init()
194 INIT_LIST_HEAD(&tomoyo_name_list[idx]); in tomoyo_mm_init()
Dfile.c699 int idx; in tomoyo_path_number_perm() local
704 idx = tomoyo_read_lock(); in tomoyo_path_number_perm()
720 tomoyo_read_unlock(idx); in tomoyo_path_number_perm()
745 int idx; in tomoyo_check_open_permission() local
749 idx = tomoyo_read_lock(); in tomoyo_check_open_permission()
769 tomoyo_read_unlock(idx); in tomoyo_check_open_permission()
795 int idx; in tomoyo_path_perm() local
803 idx = tomoyo_read_lock(); in tomoyo_path_perm()
825 tomoyo_read_unlock(idx); in tomoyo_path_perm()
850 int idx; in tomoyo_mkdev_perm() local
[all …]
Dcommon.c345 unsigned int idx; in tomoyo_init_policy_namespace() local
346 for (idx = 0; idx < TOMOYO_MAX_ACL_GROUPS; idx++) in tomoyo_init_policy_namespace()
347 INIT_LIST_HEAD(&ns->acl_group[idx]); in tomoyo_init_policy_namespace()
348 for (idx = 0; idx < TOMOYO_MAX_GROUP; idx++) in tomoyo_init_policy_namespace()
349 INIT_LIST_HEAD(&ns->group_list[idx]); in tomoyo_init_policy_namespace()
350 for (idx = 0; idx < TOMOYO_MAX_POLICY; idx++) in tomoyo_init_policy_namespace()
351 INIT_LIST_HEAD(&ns->policy_list[idx]); in tomoyo_init_policy_namespace()
1742 static bool tomoyo_read_group(struct tomoyo_io_buffer *head, const int idx) in tomoyo_read_group() argument
1746 struct list_head *list = &ns->group_list[idx]; in tomoyo_read_group()
1758 tomoyo_set_string(head, tomoyo_group_name[idx]); in tomoyo_read_group()
[all …]
Dmount.c193 int idx; in tomoyo_mount_permission() local
232 idx = tomoyo_read_lock(); in tomoyo_mount_permission()
234 tomoyo_read_unlock(idx); in tomoyo_mount_permission()
Dsecurityfs_if.c55 const int idx = tomoyo_read_lock(); in tomoyo_write_self() local
87 tomoyo_read_unlock(idx); in tomoyo_write_self()
Dnetwork.c468 const int idx = tomoyo_read_lock(); in tomoyo_inet_entry() local
486 tomoyo_read_unlock(idx); in tomoyo_inet_entry()
543 const int idx = tomoyo_read_lock(); in tomoyo_unix_entry() local
577 tomoyo_read_unlock(idx); in tomoyo_unix_entry()
Dtomoyo.c127 const int idx = tomoyo_read_lock(); in tomoyo_bprm_check_security() local
129 tomoyo_read_unlock(idx); in tomoyo_bprm_check_security()
Dcommon.h1024 const u8 idx);
1107 static inline void tomoyo_read_unlock(int idx) in tomoyo_read_unlock() argument
1109 srcu_read_unlock(&tomoyo_ss, idx); in tomoyo_read_unlock()
/security/integrity/ima/
Dima_crypto.c111 static void __init ima_pcrread(int idx, u8 *pcr) in ima_pcrread() argument
116 if (tpm_pcr_read(TPM_ANY_NUM, idx, pcr) != 0) in ima_pcrread()
/security/
Ddevice_cgroup.c268 int idx = 0; in set_access() local
271 acc[idx++] = 'r'; in set_access()
273 acc[idx++] = 'w'; in set_access()
275 acc[idx++] = 'm'; in set_access()