Skip to content

Conversation

@halpomeranz
Copy link
Contributor

"find" type collectors may now include an optional "command:". The full command line is appended to the constructed command as "... | xargs ". This allows piping the xargs output into other programs (see artifacts/system/immutable_files.yaml). Refactored artifacts/system/{getcap,immutable_files}.yaml to take advantage of this feature and benefit from the path and name filtering normally applied to other "find" type collectors.

My proposed solution for Issue #420

"find" type collectors may now include an optional "command:". The full command line is appended to the constructed command as "... | xargs <commandline>". This allows piping the xargs output into other programs (see artifacts/system/immutable_files.yaml). Refactored artifacts/system/{getcap,immutable_files}.yaml to take advantage of this feature and benefit from the path and name filtering normally applied to other "find" type collectors.
@halpomeranz
Copy link
Contributor Author

halpomeranz commented Jan 13, 2026

Unit tests are failing because _find_based_collector() now has an additional argument. The unit tests need updating to reflect this. The new option, __fc_command_xargs_pipe, is the third from the last argument to the function-- right before __fc_output_directory.

Do I have access to fix the unit tests as part of the PR?

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