Home
last modified time | relevance | path

Searched refs:tmp_ibpkey (Results 1 – 2 of 2) sorted by relevance

/external/selinux/libsepol/src/
Dibpkeys.c20 ocontext_t *tmp_ibpkey = NULL; in ibpkey_from_record() local
26 tmp_ibpkey = (ocontext_t *)calloc(1, sizeof(*tmp_ibpkey)); in ibpkey_from_record()
27 if (!tmp_ibpkey) in ibpkey_from_record()
30 tmp_ibpkey->u.ibpkey.subnet_prefix = sepol_ibpkey_get_subnet_prefix_bytes(data); in ibpkey_from_record()
33 tmp_ibpkey->u.ibpkey.low_pkey = low; in ibpkey_from_record()
34 tmp_ibpkey->u.ibpkey.high_pkey = high; in ibpkey_from_record()
35 if (tmp_ibpkey->u.ibpkey.low_pkey > tmp_ibpkey->u.ibpkey.high_pkey) { in ibpkey_from_record()
37 tmp_ibpkey->u.ibpkey.low_pkey, tmp_ibpkey->u.ibpkey.high_pkey); in ibpkey_from_record()
45 context_cpy(&tmp_ibpkey->context[0], tmp_con); in ibpkey_from_record()
50 *ibpkey = tmp_ibpkey; in ibpkey_from_record()
[all …]
Dibpkey_record.c290 sepol_ibpkey_t *tmp_ibpkey = (sepol_ibpkey_t *)malloc(sizeof(sepol_ibpkey_t)); in sepol_ibpkey_create() local
292 if (!tmp_ibpkey) { in sepol_ibpkey_create()
297 tmp_ibpkey->subnet_prefix = 0; in sepol_ibpkey_create()
298 tmp_ibpkey->low = 0; in sepol_ibpkey_create()
299 tmp_ibpkey->high = 0; in sepol_ibpkey_create()
300 tmp_ibpkey->con = NULL; in sepol_ibpkey_create()
301 *ibpkey = tmp_ibpkey; in sepol_ibpkey_create()