Commit a0d760b
committed
guestagent: start iptables audit watcher when auditing already enabled
Fixes a logic gap where, if auditing was already enabled at startup, the
code only set worthCheckingIPTables=true and did not launch
setWorthCheckingIPTablesRoutine. Without the routine the flag never
changes (never set false after idle, never toggled by NETFILTER_CFG
events), so the cached a.latestIPTables path is never used and behavior
differs from the “auditing just enabled” case.
Change:
- After confirming auditing is (or becomes) enabled, always set
worthCheckingIPTables=true for the initial scan and always start
setWorthCheckingIPTablesRoutine.
- Leave the non‑auditing fallback path unchanged.
This makes flag state transitions consistent regardless of initial
auditStatus.Enabled.
Signed-off-by: ashwat287 <ashwatpas@gmail.com>1 parent 1bf475c commit a0d760b
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
0 commit comments