Home
last modified time | relevance | path

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

/security/selinux/
Dnetport.c86 unsigned int idx; in sel_netport_find() local
89 idx = sel_netport_hashfn(pnum); in sel_netport_find()
90 list_for_each_entry_rcu(port, &sel_netport_hash[idx].list, list) in sel_netport_find()
107 unsigned int idx; in sel_netport_insert() local
111 idx = sel_netport_hashfn(port->psec.port); in sel_netport_insert()
112 list_add_rcu(&port->list, &sel_netport_hash[idx].list); in sel_netport_insert()
113 if (sel_netport_hash[idx].size == SEL_NETPORT_HASH_BKT_LIMIT) { in sel_netport_insert()
117 sel_netport_hash[idx].list.prev, in sel_netport_insert()
123 sel_netport_hash[idx].size++; in sel_netport_insert()
209 unsigned int idx; in sel_netport_flush() local
[all …]
Dibpkey.c73 unsigned int idx; in sel_ib_pkey_find() local
76 idx = sel_ib_pkey_hashfn(pkey_num); in sel_ib_pkey_find()
77 list_for_each_entry_rcu(pkey, &sel_ib_pkey_hash[idx].list, list) { in sel_ib_pkey_find()
96 unsigned int idx; in sel_ib_pkey_insert() local
101 idx = sel_ib_pkey_hashfn(pkey->psec.pkey); in sel_ib_pkey_insert()
102 list_add_rcu(&pkey->list, &sel_ib_pkey_hash[idx].list); in sel_ib_pkey_insert()
103 if (sel_ib_pkey_hash[idx].size == SEL_PKEY_HASH_BKT_LIMIT) { in sel_ib_pkey_insert()
108 sel_ib_pkey_hash[idx].list.prev, in sel_ib_pkey_insert()
114 sel_ib_pkey_hash[idx].size++; in sel_ib_pkey_insert()
205 unsigned int idx; in sel_ib_pkey_flush() local
[all …]
Dnetnode.c106 unsigned int idx; in sel_netnode_find() local
111 idx = sel_netnode_hashfn_ipv4(*(__be32 *)addr); in sel_netnode_find()
114 idx = sel_netnode_hashfn_ipv6(addr); in sel_netnode_find()
121 list_for_each_entry_rcu(node, &sel_netnode_hash[idx].list, list) in sel_netnode_find()
148 unsigned int idx; in sel_netnode_insert() local
152 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); in sel_netnode_insert()
155 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6); in sel_netnode_insert()
164 list_add_rcu(&node->list, &sel_netnode_hash[idx].list); in sel_netnode_insert()
165 if (sel_netnode_hash[idx].size == SEL_NETNODE_HASH_BKT_LIMIT) { in sel_netnode_insert()
168 rcu_dereference_protected(sel_netnode_hash[idx].list.prev, in sel_netnode_insert()
[all …]
Dnetif.c71 int idx = sel_netif_hashfn(ns, ifindex); in sel_netif_find() local
74 list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list) in sel_netif_find()
93 int idx; in sel_netif_insert() local
98 idx = sel_netif_hashfn(netif->nsec.ns, netif->nsec.ifindex); in sel_netif_insert()
99 list_add_rcu(&netif->list, &sel_netif_hash[idx]); in sel_netif_insert()
240 int idx; in sel_netif_flush() local
244 for (idx = 0; idx < SEL_NETIF_HASH_SIZE; idx++) in sel_netif_flush()
245 list_for_each_entry(netif, &sel_netif_hash[idx], list) in sel_netif_flush()
Dselinuxfs.c1527 static struct avc_cache_stats *sel_avc_get_stat_idx(loff_t *idx) in sel_avc_get_stat_idx() argument
1531 for (cpu = *idx; cpu < nr_cpu_ids; ++cpu) { in sel_avc_get_stat_idx()
1534 *idx = cpu + 1; in sel_avc_get_stat_idx()
/security/tomoyo/
Dmemory.c96 const u8 idx) in tomoyo_get_group() argument
104 if (!tomoyo_correct_word(group_name) || idx >= TOMOYO_MAX_GROUP) in tomoyo_get_group()
111 list = &param->ns->group_list[idx]; in tomoyo_get_group()
197 int idx; in tomoyo_mm_init() local
199 for (idx = 0; idx < TOMOYO_MAX_HASH; idx++) in tomoyo_mm_init()
200 INIT_LIST_HEAD(&tomoyo_name_list[idx]); in tomoyo_mm_init()
Dcommon.c349 unsigned int idx; in tomoyo_init_policy_namespace() local
351 for (idx = 0; idx < TOMOYO_MAX_ACL_GROUPS; idx++) in tomoyo_init_policy_namespace()
352 INIT_LIST_HEAD(&ns->acl_group[idx]); in tomoyo_init_policy_namespace()
353 for (idx = 0; idx < TOMOYO_MAX_GROUP; idx++) in tomoyo_init_policy_namespace()
354 INIT_LIST_HEAD(&ns->group_list[idx]); in tomoyo_init_policy_namespace()
355 for (idx = 0; idx < TOMOYO_MAX_POLICY; idx++) in tomoyo_init_policy_namespace()
356 INIT_LIST_HEAD(&ns->policy_list[idx]); in tomoyo_init_policy_namespace()
1179 unsigned int idx; in tomoyo_write_domain() local
1197 if (sscanf(data, "use_profile %u", &idx) == 1 in tomoyo_write_domain()
1198 && idx < TOMOYO_MAX_PROFILES) { in tomoyo_write_domain()
[all …]
Dfile.c717 int idx; in tomoyo_path_number_perm() local
722 idx = tomoyo_read_lock(); in tomoyo_path_number_perm()
738 tomoyo_read_unlock(idx); in tomoyo_path_number_perm()
763 int idx; in tomoyo_check_open_permission() local
767 idx = tomoyo_read_lock(); in tomoyo_check_open_permission()
787 tomoyo_read_unlock(idx); in tomoyo_check_open_permission()
813 int idx; in tomoyo_path_perm() local
821 idx = tomoyo_read_lock(); in tomoyo_path_perm()
843 tomoyo_read_unlock(idx); in tomoyo_path_perm()
868 int idx; in tomoyo_mkdev_perm() local
[all …]
Dmount.c197 int idx; in tomoyo_mount_permission() local
236 idx = tomoyo_read_lock(); in tomoyo_mount_permission()
238 tomoyo_read_unlock(idx); in tomoyo_mount_permission()
Dsecurityfs_if.c54 const int idx = tomoyo_read_lock(); in tomoyo_write_self() local
83 tomoyo_read_unlock(idx); in tomoyo_write_self()
Dnetwork.c469 const int idx = tomoyo_read_lock(); in tomoyo_inet_entry() local
487 tomoyo_read_unlock(idx); in tomoyo_inet_entry()
546 const int idx = tomoyo_read_lock(); in tomoyo_unix_entry() local
580 tomoyo_read_unlock(idx); in tomoyo_unix_entry()
Dtomoyo.c106 const int idx = tomoyo_read_lock(); in tomoyo_bprm_check_security() local
109 tomoyo_read_unlock(idx); in tomoyo_bprm_check_security()
Dcommon.h1036 const u8 idx);
1121 static inline void tomoyo_read_unlock(int idx) in tomoyo_read_unlock() argument
1123 srcu_read_unlock(&tomoyo_ss, idx); in tomoyo_read_unlock()
/security/
Ddevice_cgroup.c238 int idx = 0; in set_access() local
241 acc[idx++] = 'r'; in set_access()
243 acc[idx++] = 'w'; in set_access()
245 acc[idx++] = 'm'; in set_access()
/security/selinux/ss/
Debitmap.c149 u32 offset = 0, idx; in ebitmap_netlbl_import() local
180 idx = EBITMAP_NODE_INDEX(e_iter, offset); in ebitmap_netlbl_import()
181 e_iter->maps[idx] = bitmap; in ebitmap_netlbl_import()
/security/integrity/ima/
Dima_crypto.c648 static void __init ima_pcrread(u32 idx, struct tpm_digest *d) in ima_pcrread() argument
653 if (tpm_pcr_read(ima_tpm_chip, idx, d) != 0) in ima_pcrread()