Home
last modified time | relevance | path

Searched refs:tmp_key (Results 1 – 8 of 8) sorted by relevance

/external/selinux/libsepol/src/
Dnode_record.c230 sepol_node_key_t *tmp_key = in sepol_node_key_create() local
232 if (!tmp_key) in sepol_node_key_create()
235 if (node_alloc_addr(handle, proto, &tmp_key->addr, &tmp_key->addr_sz) < in sepol_node_key_create()
238 if (node_parse_addr(handle, addr, proto, tmp_key->addr) < 0) in sepol_node_key_create()
241 if (node_alloc_addr(handle, proto, &tmp_key->mask, &tmp_key->mask_sz) < in sepol_node_key_create()
244 if (node_parse_addr(handle, mask, proto, tmp_key->mask) < 0) in sepol_node_key_create()
247 tmp_key->proto = proto; in sepol_node_key_create()
249 *key_ptr = tmp_key; in sepol_node_key_create()
256 sepol_node_key_free(tmp_key); in sepol_node_key_create()
280 sepol_node_key_t *tmp_key = in hidden_def() local
[all …]
Dboolean_record.c25 sepol_bool_key_t *tmp_key = in sepol_bool_key_create() local
28 if (!tmp_key) { in sepol_bool_key_create()
33 tmp_key->name = strdup(name); in sepol_bool_key_create()
34 if (!tmp_key->name) { in sepol_bool_key_create()
36 free(tmp_key); in sepol_bool_key_create()
40 *key_ptr = tmp_key; in sepol_bool_key_create()
Diface_record.c31 sepol_iface_key_t *tmp_key = in sepol_iface_key_create() local
34 if (!tmp_key) { in sepol_iface_key_create()
39 tmp_key->name = strdup(name); in sepol_iface_key_create()
40 if (!tmp_key->name) { in sepol_iface_key_create()
42 free(tmp_key); in sepol_iface_key_create()
46 *key_ptr = tmp_key; in sepol_iface_key_create()
Dport_record.c33 sepol_port_key_t *tmp_key = in sepol_port_key_create() local
36 if (!tmp_key) { in sepol_port_key_create()
41 tmp_key->low = low; in sepol_port_key_create()
42 tmp_key->high = high; in sepol_port_key_create()
43 tmp_key->proto = proto; in sepol_port_key_create()
45 *key_ptr = tmp_key; in sepol_port_key_create()
Dassertion.c147 avtab_key_t tmp_key; in report_assertion_extended_permissions() local
157 memcpy(&tmp_key, k, sizeof(avtab_key_t)); in report_assertion_extended_permissions()
158 tmp_key.specified = AVTAB_XPERMS_ALLOWED; in report_assertion_extended_permissions()
166 tmp_key.source_type = i + 1; in report_assertion_extended_permissions()
167 tmp_key.target_type = j + 1; in report_assertion_extended_permissions()
168 for (node = avtab_search_node(avtab, &tmp_key); in report_assertion_extended_permissions()
170 node = avtab_search_node_next(node, tmp_key.specified)) { in report_assertion_extended_permissions()
336 avtab_key_t tmp_key; in check_assertion_extended_permissions_avtab() local
345 memcpy(&tmp_key, k, sizeof(avtab_key_t)); in check_assertion_extended_permissions_avtab()
346 tmp_key.specified = AVTAB_XPERMS_ALLOWED; in check_assertion_extended_permissions_avtab()
[all …]
Duser_record.c34 sepol_user_key_t *tmp_key = in sepol_user_key_create() local
37 if (!tmp_key) { in sepol_user_key_create()
43 tmp_key->name = strdup(name); in sepol_user_key_create()
44 if (!tmp_key->name) { in sepol_user_key_create()
46 free(tmp_key); in sepol_user_key_create()
50 *key_ptr = tmp_key; in sepol_user_key_create()
/external/selinux/libsemanage/src/
Dfcontext_record.c40 semanage_fcontext_key_t *tmp_key = in semanage_fcontext_key_create() local
43 if (!tmp_key) { in semanage_fcontext_key_create()
48 tmp_key->expr = strdup(expr); in semanage_fcontext_key_create()
49 if (!tmp_key->expr) { in semanage_fcontext_key_create()
51 free(tmp_key); in semanage_fcontext_key_create()
54 tmp_key->type = type; in semanage_fcontext_key_create()
56 *key_ptr = tmp_key; in semanage_fcontext_key_create()
Dseuser_record.c44 semanage_seuser_key_t *tmp_key = (semanage_seuser_key_t *) in semanage_seuser_key_create() local
47 if (!tmp_key) { in semanage_seuser_key_create()
51 tmp_key->name = strdup(name); in semanage_seuser_key_create()
52 if (!tmp_key->name) { in semanage_seuser_key_create()
54 free(tmp_key); in semanage_seuser_key_create()
58 *key_ptr = tmp_key; in semanage_seuser_key_create()