logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

audit_name_to_action, audit_action_to_name - Convert the action name to the numeric action value to each

Author

Steve Grubb Red Hat Mar 2022 AUDIT_NAME_TO_ACTION(3)

Description

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

Name

audit_name_to_action, audit_action_to_name - Convert the action name to the numeric action value to each other

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.

Synopsis

#include<libaudit.h>intaudit_name_to_action(constchar*action);constchar*audit_action_to_name(intaction);

See Also