File audisp-remote-fix-hang-with-disk_low_action-suspend-.patch of Package audit-secondary (Revision e22aae9e580e040d565055f1fa3967d6)
Currently displaying revision e22aae9e580e040d565055f1fa3967d6 , Show latest
32
1
From b6c474b22f6e76969221138d0d9ec8d97cb217ee Mon Sep 17 00:00:00 2001
2
From: Enzo Matsumiya <ematsumiya@suse.com>
3
Date: Thu, 24 Mar 2022 23:38:24 -0300
4
Subject: [PATCH] audisp-remote: fix hang with disk_low_action=suspend (#254)
5
6
If auditd.conf has disk_low_action=suspend and the partition where the
7
log is triggers the disk_low_action, audisp-remote will hang in
8
infinite loop.
9
10
Fixes: 10dde069d1ac ("Dont look for stop on exit while draining the queue")
11
Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
12
---
13
audisp/plugins/remote/audisp-remote.c | 2 +-
14
1 file changed, 1 insertion(+), 1 deletion(-)
15
16
diff --git a/audisp/plugins/remote/audisp-remote.c b/audisp/plugins/remote/audisp-remote.c
17
index b7e610e8ca32..3be91b3d5190 100644
18
--- a/audisp/plugins/remote/audisp-remote.c
19
+++ b/audisp/plugins/remote/audisp-remote.c
20
21
22
// If stdin is a pipe, then flush the queue
23
if (is_pipe(0)) {
24
- while (q_queue_length(queue) && transport_ok)
25
+ while (q_queue_length(queue) && !suspend && transport_ok)
26
send_one(queue);
27
}
28
29
--
30
2.35.1
31
32