[systemd-commits] src/manager.c

Lennart Poettering lennart at kemper.freedesktop.org
Wed Aug 11 18:52:07 PDT 2010


 src/manager.c |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit bbd3a7ba5c91af7f84be29429e96f15dbe36ca48
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Aug 12 03:51:58 2010 +0200

    audit: suppress repeated audit events when deserializing

diff --git a/src/manager.c b/src/manager.c
index 3e742f7..6640420 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -2260,6 +2260,11 @@ void manager_send_unit_audit(Manager *m, Unit *u, int type, bool success) {
         if (m->audit_fd < 0)
                 return;
 
+        /* Don't generate audit events if the service was already
+         * started and we're just deserializing */
+        if (m->n_deserializing > 0)
+                return;
+
         if (!(p = unit_name_to_prefix_and_instance(u->meta.id))) {
                 log_error("Failed to allocate unit name for audit message: %s", strerror(ENOMEM));
                 return;


More information about the systemd-commits mailing list