secpolev_get_path_info()
Get information about a path event
Synopsis:
#include <secpol/secpolev.h>
int secpolev_get_path_info(const char **path,
secpolev_path_event_status_t *status)
Arguments:
- path
- If non-NULL, returns the path associated with the event.
- status
- If non-NULL, provides additional information as to why the rule was denied.
Library:
libsecpolevDescription:
The secpolev_get_path_info() function returns information about a path event (i.e., one with type SECPOLEV_EVENT_PATH_ATTACH
or SECPOLEV_EVENT_PATH_LINK
).
The returned string remains 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_PATH_ATTACH
orSECPOLEV_EVENT_PATH_LINK
.
Page updated: