secpolev_get_process_name()
Get the name of the process associated with an event
Synopsis:
#include <secpol/secpolev.h>
const char* secpolev_get_process_name(void)
Library:
libsecpolevDescription:
The secpolev_get_process_name() function returns the name of the process associated with the last event received, or NULL, if not known. There are typically a few ability checks that are tested before a process gets a name (e.g., prot_exec
and map_fixed
).
Note that in the initial stage of an exec*() call, the process has no name, but this is not considered an error and errno is not set.
The returned string remains valid until the next call to secpolev_wait_event().
Returns:
The process name.
Page updated: