mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-05 08:45:28 +00:00
Propagate errors in audit code to caller instead of using fatal().
If we fail to audit an otherwise successful command, return an error from the policy. For Linux audit, sudo may be compiled with audit support but auditing may not be setup, so we don't consider that an error.
This commit is contained in:
@@ -60,8 +60,8 @@
|
||||
|
||||
bool sudoers_setlocale(int newlocale, int *prevlocale);
|
||||
int sudoers_getlocale(void);
|
||||
void audit_success(char *exec_args[]);
|
||||
void audit_failure(char *exec_args[], char const *const fmt, ...) __printflike(2, 3);
|
||||
int audit_success(char *exec_args[]);
|
||||
int audit_failure(char *exec_args[], char const *const fmt, ...) __printflike(2, 3);
|
||||
void log_allowed(int status);
|
||||
void log_auth_failure(int status, unsigned int tries);
|
||||
void log_denial(int status, bool inform_user);
|
||||
|
Reference in New Issue
Block a user