audit_name_to_action(3)

audit_name_to_action3

Convert the action name to the numeric action value to each other

Usage

#include <libaudit.h>

int audit_name_to_action(const char *action);

const char *audit_action_to_name(int action);

Overview

audit_name_to_action() converts the action name ("never", "possible", "always") to the numeric action value (AUDIT_NEVER, AUDIT_POSSIBLE, AUDIT_ALWAYS). action is the action name.

audit_action_to_name() converts the numeric action value (AUDIT_NEVER, AUDIT_POSSIBLE, AUDIT_ALWAYS) to the action name ("never", "possible", "always"). action is the numeric action value

Return value

audit_name_to_action() returns -1 if an error occurs; otherwise, the return value is the numeric action value.

audit_action_to_name() returns NULL if an error occurs; otherwise, the return value is the action name.

Releases

Unchanged in 3 releases since Debian 12 (Bookworm).

  1. 12–Arch

Author

Steve Grubb

From audit 4.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.