Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dibendports.c19 ocontext_t *tmp_ibendport = NULL; in ibendport_from_record() local
24 tmp_ibendport = (ocontext_t *)calloc(1, sizeof(ocontext_t)); in ibendport_from_record()
25 if (!tmp_ibendport) in ibendport_from_record()
29 &tmp_ibendport->u.ibendport.dev_name) < 0) in ibendport_from_record()
37 strncpy(tmp_ibendport->u.ibendport.dev_name, ibdev_name, IB_DEVICE_NAME_MAX); in ibendport_from_record()
42 tmp_ibendport->u.ibendport.port = port; in ibendport_from_record()
48 context_cpy(&tmp_ibendport->context[0], tmp_con); in ibendport_from_record()
53 *ibendport = tmp_ibendport; in ibendport_from_record()
60 if (tmp_ibendport) { in ibendport_from_record()
61 context_destroy(&tmp_ibendport->context[0]); in ibendport_from_record()
[all …]
Dibendport_record.c210 sepol_ibendport_t *tmp_ibendport = (sepol_ibendport_t *)malloc(sizeof(sepol_ibendport_t)); in hidden_def() local
212 if (!tmp_ibendport) { in hidden_def()
217 tmp_ibendport->ibdev_name = NULL; in hidden_def()
218 tmp_ibendport->port = 0; in hidden_def()
219 tmp_ibendport->con = NULL; in hidden_def()
220 *ibendport = tmp_ibendport; in hidden_def()