security_get_sids2
Get the set of active sids
Usage
#include <ss.h>
int security_get_sids(security_id_t *sids, __u32 *nel);
Overview
The security_get_sids call is used to obtain the set of active SIDs. The nel argument is a value-result parameter, initialized to the number of elements in the array associated with sids, and modified on return to indicate the number of active SIDs. If the buffer is not large enough, then nel is set to the number of active SIDs, -1 is returned, and errno is set to ENOSPC.
Return value
A zero is returned on success. On error, -1 is returned, and errno is set appropriately.
Errors
EACCES
|
The process is not authorized to invoke this call. |
|---|---|
ENOSPC
|
The buffer was too small. |