The following list function is supported for any SELinux managent record.
.br
Replace the function and object name as necessary.
.BexternintLIST_FUNCTION(
.br
.BI" semanage_handle_t *"handle","
.br
.BI" semanage_OBJECT_t ***"objects","
.br
.BI" unsigned int* "count");"
.SH"DESCRIPTION"
.TP
.BBehavior:
The list function will return an array of all the objects in the selected location.
.TP
.BParameters:
The
.Ihandle
is used to track persistent state across semanage calls, and for error reporting. The function will allocate and populate the the array of objects, and store it at the location pointed by
.Iobjects.
It will write the number of objects at the location pointed by
.Icount.
The array, and all its objects become property of the caller. Each object must be freed with
.Bsemanage_OBJECT_free.
.TP
.BRequirements:
This function requires an semanage connection to be established (see
Otherwise a non-negative integer is returned (a commit number). The same number will be returned by all other semanage object read calls until the next commit.