audit_can_read3
Test audit related capabilities
Usage
#include <libaudit.h>
int audit_can_control(void);
int audit_can_write(void);
int audit_can_read(void);
Overview
audit_can_control() returns 1 if the calling process possesses the CAP_AUDIT_CONTROL capability, otherwise 0. audit_can_write() returns 1 if CAP_AUDIT_WRITE is available. audit_can_read() returns 1 if CAP_AUDIT_READ is present. When libcap-ng support is not available these functions return 1 only when the effective UID is 0.
Return value
These functions return 1 when the capability is present and 0 otherwise.