audit_can_read - Man Page
test audit related capabilities
Synopsis
#include <libaudit.h>
int audit_can_control(void);
int audit_can_write(void);
int audit_can_read(void);
Description
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.
See Also
Author
Steve Grubb
Info
July 2025 Red Hat Linux Audit API