Lines Matching full:items
328 SELinuxFreeItems(SELinuxListItemRec * items, int count) in SELinuxFreeItems() argument
333 freecon(items[k].octx); in SELinuxFreeItems()
334 freecon(items[k].dctx); in SELinuxFreeItems()
336 free(items); in SELinuxFreeItems()
340 SELinuxSendItemsToClient(ClientPtr client, SELinuxListItemRec * items, in SELinuxSendItemsToClient() argument
355 buf[pos] = items[k].id; in SELinuxSendItemsToClient()
360 buf[pos] = items[k].octx_len * 4; in SELinuxSendItemsToClient()
365 buf[pos] = items[k].dctx_len * 4; in SELinuxSendItemsToClient()
370 memcpy((char *) (buf + pos), items[k].octx, strlen(items[k].octx) + 1); in SELinuxSendItemsToClient()
371 pos += items[k].octx_len; in SELinuxSendItemsToClient()
372 memcpy((char *) (buf + pos), items[k].dctx, strlen(items[k].dctx) + 1); in SELinuxSendItemsToClient()
373 pos += items[k].dctx_len; in SELinuxSendItemsToClient()
397 SELinuxFreeItems(items, count); in SELinuxSendItemsToClient()
406 SELinuxListItemRec *items; in ProcSELinuxListProperties() local
417 /* Count the number of properties and allocate items */ in ProcSELinuxListProperties()
421 items = calloc(count, sizeof(SELinuxListItemRec)); in ProcSELinuxListProperties()
422 if (count && !items) in ProcSELinuxListProperties()
425 /* Fill in the items and calculate size */ in ProcSELinuxListProperties()
430 rc = SELinuxPopulateItem(items + i, &pProp->devPrivates, id, &size); in ProcSELinuxListProperties()
432 SELinuxFreeItems(items, count); in ProcSELinuxListProperties()
438 return SELinuxSendItemsToClient(client, items, size, count); in ProcSELinuxListProperties()
445 SELinuxListItemRec *items; in ProcSELinuxListSelections() local
451 /* Count the number of selections and allocate items */ in ProcSELinuxListSelections()
455 items = calloc(count, sizeof(SELinuxListItemRec)); in ProcSELinuxListSelections()
456 if (count && !items) in ProcSELinuxListSelections()
459 /* Fill in the items and calculate size */ in ProcSELinuxListSelections()
464 rc = SELinuxPopulateItem(items + i, &pSel->devPrivates, id, &size); in ProcSELinuxListSelections()
466 SELinuxFreeItems(items, count); in ProcSELinuxListSelections()
472 return SELinuxSendItemsToClient(client, items, size, count); in ProcSELinuxListSelections()