Skip to content

Conversation

@djoreilly
Copy link

If more than one instance of the audit plugin is called with watch rules for the same path, but each using different keys, e.g.:

SELECT * FROM audit(rules=["-w /etc/passwd -k key1"]) WHERE "key1" IN Tags
SELECT * FROM audit(rules=["-w /etc/passwd -k key2"]) WHERE "key2" IN Tags

Then it turns out that any event will only be sent to one of the instances.

Fix by using the same key for the same paths across instances. The audit plugin reference counts audit rules and duplicates are not a problem.

If more than one instance of the audit plugin is called with watch rules
for the same path but each using different keys, e.g.:

SELECT * FROM audit(rules=["-w /etc/passwd -k key1"]) WHERE "key1" IN Tags
SELECT * FROM audit(rules=["-w /etc/passwd -k key2"]) WHERE "key2" IN Tags

Then it turns out that each event will only be sent to one of the instances.

Fix by using the same key for the same paths across instances. The audit
plugin reference counts audit rules and duplicates are not a problem.
@djoreilly djoreilly requested a review from gosipyan March 19, 2025 15:21
@djoreilly djoreilly merged commit fb24dfd into SUSE:sensor-base-0.7.0 Mar 20, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants