db5216
diff -up Linux-PAM-1.1.8/libpam/pam_audit.c.relax-audit Linux-PAM-1.1.8/libpam/pam_audit.c
db5216
--- Linux-PAM-1.1.8/libpam/pam_audit.c.relax-audit	2016-03-03 10:01:15.000000000 +0100
db5216
+++ Linux-PAM-1.1.8/libpam/pam_audit.c	2016-04-22 15:18:55.692925308 +0200
db5216
@@ -53,7 +53,7 @@ _pam_audit_writelog(pam_handle_t *pamh,
db5216
   pamh->audit_state |= PAMAUDIT_LOGGED;
db5216
 
db5216
   if (rc < 0) {
db5216
-      if (rc == -EPERM && getuid() != 0)
db5216
+      if (rc == -EPERM)
db5216
           return 0;
db5216
       if (errno != old_errno) {
db5216
           old_errno = errno;