secpolev_get_custom_perm_info()
Get information about a custom permission event
Synopsis:
#include <secpol/secpolev.h>
int secpolev_get_custom_perm_info(const char **class_name,
const char **perm_name,
const char **obj_type)
Arguments:
- class_name
- If non-NULL, returns the name of the class associated with the event.
- perm_name
- If non-NULL, returns the name of the class permission that was tested.
- obj_type
- If non-NULL, returns the name of the security type of the object associated with the test.
Library:
libsecpolevDescription:
The secpolev_get_custom_perm_info() function returns a security policy custom permission event (i.e., one with type SECPOLEV_EVENT_CUSTOM_PERM
).
The returned strings remain valid until the next call to secpolev_wait_event().
Returns:
0
if successful, or -1
if an error occurred. On failure, errno is set to:- ENOTSUP - There is no current event or the event is not of type
SECPOLEV_EVENT_CUSTOM_PERM
.
Page updated: