Lines Matching refs:ibpkey

18 			      ocontext_t **ibpkey, const sepol_ibpkey_t *data)  in ibpkey_from_record()  argument
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()
50 *ibpkey = tmp_ibpkey; in ibpkey_from_record()
70 ocontext_t *ibpkey, sepol_ibpkey_t **record) in ibpkey_to_record() argument
72 context_struct_t *con = &ibpkey->context[0]; in ibpkey_to_record()
80 ibpkey->u.ibpkey.subnet_prefix); in ibpkey_to_record()
82 sepol_ibpkey_set_range(tmp_record, ibpkey->u.ibpkey.low_pkey, in ibpkey_to_record()
83 ibpkey->u.ibpkey.high_pkey); in ibpkey_to_record()
133 uint64_t subnet_prefix2 = c->u.ibpkey.subnet_prefix; in sepol_ibpkey_exists()
134 uint16_t low2 = c->u.ibpkey.low_pkey; in sepol_ibpkey_exists()
135 uint16_t high2 = c->u.ibpkey.high_pkey; in sepol_ibpkey_exists()
163 uint64_t subnet_prefix2 = c->u.ibpkey.subnet_prefix; in sepol_ibpkey_query()
164 int low2 = c->u.ibpkey.low_pkey; in sepol_ibpkey_query()
165 int high2 = c->u.ibpkey.high_pkey; in sepol_ibpkey_query()
191 ocontext_t *ibpkey = NULL; in sepol_ibpkey_modify() local
197 if (ibpkey_from_record(handle, policydb, &ibpkey, data) < 0) in sepol_ibpkey_modify()
201 ibpkey->next = policydb->ocontexts[OCON_IBPKEY]; in sepol_ibpkey_modify()
202 policydb->ocontexts[OCON_IBPKEY] = ibpkey; in sepol_ibpkey_modify()
209 if (ibpkey) { in sepol_ibpkey_modify()
210 context_destroy(&ibpkey->context[0]); in sepol_ibpkey_modify()
211 free(ibpkey); in sepol_ibpkey_modify()
218 int (*fn)(const sepol_ibpkey_t *ibpkey, in sepol_ibpkey_iterate() argument
223 sepol_ibpkey_t *ibpkey = NULL; in sepol_ibpkey_iterate() local
229 if (ibpkey_to_record(handle, policydb, c, &ibpkey) < 0) in sepol_ibpkey_iterate()
233 status = fn(ibpkey, arg); in sepol_ibpkey_iterate()
237 sepol_ibpkey_free(ibpkey); in sepol_ibpkey_iterate()
238 ibpkey = NULL; in sepol_ibpkey_iterate()
249 sepol_ibpkey_free(ibpkey); in sepol_ibpkey_iterate()