cleanup: refactor submit event functions#476
cleanup: refactor submit event functions#476Molter73 wants to merge 4 commits intojv-ROX-33217-instrument-inode-tracking-on-directory-being-created-path_mkdirfrom
Conversation
|
This PR will cause conflicts with #465 which I'm hoping we can merge tomorrow, so I'll hold off on merging for now. |
|
While looking at the PR, I thought about how we have Many times. Perhaps it would be better if this was its own function. Then we could have something like I think this is outside of the scope of the PR, but something I wanted to mention. |
|
This looks good. I left a couple of comments, but I don't want to block the PR. |
This is a good call, I think it is small enough that I can fit it into this PR. |
A new submit_event_args_t type is added to group together common arguments used by all submit event functions. This reduces the number of arguments that need to be passed into these functions and make it harder to make mistakes in the ordering of the actual arguments.
a861f3d to
96c8f45
Compare
|
I'm getting some verifier errors in #487 due to the CI run with RHCOS verifier error: https://github.com/stackrox/fact/actions/runs/24244378585/job/70786710312?pr=487 |
Description
A new
event_args_ttype is added to group together common arguments used by all submit event functions. This reduces the number of arguments that need to be passed into these functions and make it harder to make mistakes in the ordering of the actual arguments.While implementing this cleanup, a bug in the order of inodes being passed to
submit_rename_eventwas fixed.Finally, inode handling has also been simplified by removing the possibility of a
NULLinode pointer from being used.Checklist
Automated testing
If any of these don't apply, please comment below.
Testing Performed
This is simply a refactoring PR, CI should be enough to validate it works correctly.