version 1.1.1.4, 2013/10/14 07:56:34
|
version 1.1.1.5, 2014/06/15 16:12:54
|
Line 30
|
Line 30
|
#include <errno.h> |
#include <errno.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
|
#define DEFAULT_TEXT_DOMAIN "sudoers" |
|
#include "gettext.h" /* must be included before missing.h */ |
|
|
#include "missing.h" |
#include "missing.h" |
#include "fatal.h" |
#include "fatal.h" |
#include "gettext.h" |
|
#include "sudo_debug.h" |
#include "sudo_debug.h" |
#include "bsm_audit.h" |
#include "bsm_audit.h" |
|
|
Line 88 bsm_audit_success(char **exec_args)
|
Line 90 bsm_audit_success(char **exec_args)
|
if (auditon(A_GETCOND, (caddr_t)&au_cond, sizeof(long)) < 0) { |
if (auditon(A_GETCOND, (caddr_t)&au_cond, sizeof(long)) < 0) { |
if (errno == AUDIT_NOT_CONFIGURED) |
if (errno == AUDIT_NOT_CONFIGURED) |
return; |
return; |
fatal(_("Could not determine audit condition")); | fatal(U_("Could not determine audit condition")); |
} |
} |
if (au_cond == AUC_NOAUDIT) |
if (au_cond == AUC_NOAUDIT) |
debug_return; |
debug_return; |
Line 131 bsm_audit_success(char **exec_args)
|
Line 133 bsm_audit_success(char **exec_args)
|
#else |
#else |
if (au_close(aufd, 1, AUE_sudo) == -1) |
if (au_close(aufd, 1, AUE_sudo) == -1) |
#endif |
#endif |
fatal(_("unable to commit audit record")); | fatal(U_("unable to commit audit record")); |
debug_return; |
debug_return; |
} |
} |
|
|
Line 155 bsm_audit_failure(char **exec_args, char const *const
|
Line 157 bsm_audit_failure(char **exec_args, char const *const
|
if (auditon(A_GETCOND, (caddr_t)&au_cond, sizeof(long)) < 0) { |
if (auditon(A_GETCOND, (caddr_t)&au_cond, sizeof(long)) < 0) { |
if (errno == AUDIT_NOT_CONFIGURED) |
if (errno == AUDIT_NOT_CONFIGURED) |
debug_return; |
debug_return; |
fatal(_("Could not determine audit condition")); | fatal(U_("Could not determine audit condition")); |
} |
} |
if (au_cond == AUC_NOAUDIT) |
if (au_cond == AUC_NOAUDIT) |
debug_return; |
debug_return; |
Line 196 bsm_audit_failure(char **exec_args, char const *const
|
Line 198 bsm_audit_failure(char **exec_args, char const *const
|
#else |
#else |
if (au_close(aufd, 1, AUE_sudo) == -1) |
if (au_close(aufd, 1, AUE_sudo) == -1) |
#endif |
#endif |
fatal(_("unable to commit audit record")); | fatal(U_("unable to commit audit record")); |
debug_return; |
debug_return; |
} |
} |