* Access vector cache interface for object managers.
* Author : Eamon Walsh <ewalsh@epoch.ncsc.mil>
#include <selinux/selinux.h>
* SID format and operations
typedef struct security_id *security_id_t;
#define SECSID_WILD (security_id_t)NULL /* unspecified SID */
* avc_sid_to_context - get copy of context corresponding to SID.
* @ctx: pointer to context reference
* Return a copy of the security context corresponding to the input
* @sid in the memory referenced by @ctx. The caller is expected to
* free the context with freecon(). Return %0 on success, -%1 on
* failure, with @errno set to %ENOMEM if insufficient memory was
* available to make the copy, or %EINVAL if the input SID is invalid.
int avc_sid_to_context(security_id_t sid, char ** ctx);
int avc_sid_to_context_raw(security_id_t sid, char ** ctx);