summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2015-12-17 17:43:27 +0100
committerTomas Mraz <tmraz@fedoraproject.org>2015-12-17 17:43:27 +0100
commit20047e7fdcfff6633d8201f0954be51f6378f1ae (patch)
treebd9712fd5c20937ef115ef50c5ebc735bc5f58d6
parente0a996ec358af86153c0c00e67802e36283dadd0 (diff)
Relax the conditions for fatal failure on auditing.
The PAM library calls will not fail anymore for any uid if the return value from the libaudit call is -EPERM. * libpam/pam_audit.c (_pam_audit_writelog): Remove check for uid != 0.
-rw-r--r--libpam/pam_audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpam/pam_audit.c b/libpam/pam_audit.c
index 24fb799a..97a9a929 100644
--- a/libpam/pam_audit.c
+++ b/libpam/pam_audit.c
@@ -53,7 +53,7 @@ _pam_audit_writelog(pam_handle_t *pamh, int audit_fd, int type,
pamh->audit_state |= PAMAUDIT_LOGGED;
if (rc < 0) {
- if (rc == -EPERM && getuid() != 0)
+ if (rc == -EPERM)
return 0;
if (errno != old_errno) {
old_errno = errno;