Blame SOURCES/audit-2.6.7-log-perms.patch

c672a9
diff -urp audit-2.6.5.orig/src/auditd-event.c audit-2.6.5/src/auditd-event.c
c672a9
--- audit-2.6.5.orig/src/auditd-event.c	2016-07-14 10:25:39.000000000 -0400
c672a9
+++ audit-2.6.5/src/auditd-event.c	2016-08-10 09:24:41.450386810 -0400
c672a9
@@ -907,8 +907,7 @@ static void fix_disk_permissions(void)
c672a9
 	for (i = 1; i < config->num_logs; i++) {
c672a9
 		int rc;
c672a9
 		snprintf(path, len, "%s.%d", config->log_file, i);
c672a9
-		rc = chmod(path, config->log_group ? S_IWUSR|S_IRUSR|S_IRGRP :
c672a9
-			S_IWUSR|S_IRUSR);
c672a9
+		rc = chmod(path, config->log_group ? S_IRUSR|S_IRGRP : S_IRUSR);
c672a9
 		if (rc && errno == ENOENT)
c672a9
 			break;
c672a9
 	}