GET_SIDS

Section: Linux Programmer's Manual (2)
Updated: 15 Mar 2000
Index Return to Main Contents
 

NAME

security_get_sids - Get the set of active SIDs  

SYNOPSIS

#include <ss.h>

int security_get_sids(security_id_t *sids, __u32 *nel);  

DESCRIPTION

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.
 

SEE ALSO

security_compute_av(2), security_sid_to_context(2), security_context_to_sid(2), security_transition_sid(2), security_member_sid(2), security_load_policy(2), security_notify_perm(2), security_get_sids(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 17:08:29 GMT, December 18, 2000