mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-22 02:12:16 +00:00
8858c2f636
The cases marked the start of a window with date "+%x %T" and passed the
result to ausearch -ts. Audit 4.0.3 rejects it:
Invalid start time (10/14/2026 20:00:00). Hour, Minute, and Second are
required.
ausearch then exits 1 with that message and no records. Measured on
xcat162-mn-tmp-286: the query returned 0 records where 653 were in the log,
and MM/DD/YY and ISO forms are refused the same way. Only a bare HH:MM:SS
is accepted. Each no-denial check therefore reported a clean node whatever
the node did, which is the defect --input-logs was meant to remove.
Each case now seeds an ausearch --checkpoint file at its start and reads
the new events with the same file, which is audit's own mechanism and has
no date to misparse. A check before the count asserts that ausearch
answered at all: the output has to hold a record or "<no matches>", and an
error message holds neither. Verified on the same node, where the guard
exits 1 on a deliberately broken query, 0 on an empty window, and the read
after a client run returned 63 new records.
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>