public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* [PATCH audit] reconfigure: Apply log_group change
@ 2014-07-25 11:59 Lubomir Rintel
  2014-07-25 13:27 ` Steve Grubb
  0 siblings, 1 reply; 4+ messages in thread
From: Lubomir Rintel @ 2014-07-25 11:59 UTC (permalink / raw)
  To: linux-audit

Link: https://bugzilla.redhat.com/show_bug.cgi?id=1118313
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1118262
---
 src/auditd-event.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/auditd-event.c b/src/auditd-event.c
index 4fa266e..66dff34 100644
--- a/src/auditd-event.c
+++ b/src/auditd-event.c
@@ -1130,6 +1130,12 @@ static void reconfigure(struct auditd_consumer_data *data)
 	// log format
 	oconf->log_format = nconf->log_format;
 
+	// log group
+	if (oconf->log_group != nconf->log_group) {
+		oconf->log_group = nconf->log_group;
+		need_reopen = 1;
+	}
+
 	// action_mail_acct
 	if (strcmp(oconf->action_mail_acct, nconf->action_mail_acct)) {
 		free((void *)oconf->action_mail_acct);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-25 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-25 11:59 [PATCH audit] reconfigure: Apply log_group change Lubomir Rintel
2014-07-25 13:27 ` Steve Grubb
2014-07-25 14:04   ` Lubomir Rintel
2014-07-25 14:30     ` Steve Grubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox