Skip to contentSkip to conversation

policycoreutils/restorecond: Decrease loglevel of termination message

PATCH Applied Vit Mojzis 2 participants 2 messages Jan 4, 2017 – Jan 6, 2017 SELinux security module

lore
Share & tools
lore

Vit Mojzis

author
#0 lore raw

PATCH 1/1 policycoreutils/restorecond: Decrease loglevel of termination message

Decrease loglevel of termination message
(eg. "restorecond[709]: terminated") to LOG_INFO because it is printed upon normal shutdown of the daemon.

---
 restorecond/watch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
restorecond/watch.c +1 -1
index 2be45d4..691df82 100644
@@ -179,7 +179,7 @@ int watch(int fd, const char *watch_file)
 			syslog(LOG_ERR, "Read error (%s)", strerror(errno));
 			return 0;
 		}
-		syslog(LOG_ERR, "terminated");
+		syslog(LOG_INFO, "terminated");
 		return -1;
 	} else if (!len)
 		/* BUF_LEN too small? */
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 7 lines · Vit Mojzis

Decrease loglevel of termination message
(eg. "restorecond[709]: terminated") to LOG_INFO because it is printed upon normal shutdown of the daemon.

Applied.

Thanks,

Quoted 18 lines
---
 restorecond/watch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
restorecond/watch.c +1 -1
index 2be45d4..691df82 100644
@@ -179,7 +179,7 @@ int watch(int fd, const char *watch_file)
 			syslog(LOG_ERR, "Read error (%s)", strerror(errno));
 			return 0;
 		}
-		syslog(LOG_ERR, "terminated");
+		syslog(LOG_INFO, "terminated");
 		return -1;
 	} else if (!len)
 		/* BUF_LEN too small? */
Signature · 2 lines
James Carter <[email protected]>
National Security Agency