Searched refs:tmp_key (Results 1 – 8 of 8) sorted by relevance
/external/selinux/libsepol/src/ |
D | node_record.c | 230 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 …]
|
D | boolean_record.c | 25 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()
|
D | iface_record.c | 31 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()
|
D | port_record.c | 33 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()
|
D | assertion.c | 147 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 …]
|
D | user_record.c | 34 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/ |
D | fcontext_record.c | 40 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()
|
D | seuser_record.c | 44 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()
|