Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for config files that differ for copies of the same file/symlink #235

Open
nightlark opened this issue Jul 30, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@nightlark
Copy link
Collaborator

In #216, one of the potential issues with only running once on a file is: Some plugins might need to gather information from other files relative to the one they are looking at (based on symlink location).

Two questions for addressing this issue are:

  • Should an extra optional argument be added to the info extractor hook to tell the plugin if a file with the same hash has previously been seen, so it can adjust its behavior accordingly?
  • Should a separate info extraction hook be added for duplicate files in different locations?

Thinking about this a bit more, possibly the best solution would be some changes to go with refactoring the internal Surfactant representation of gathered data to use a graph. With this option, an infoextractor plugin would gather data from the extra files as their own separate software entries, and then the relationship establishing plugins would use info from those files as needed based on the install path being considered. This would allow more accurate relationships to be established in situations where the config file that goes with an executable has different settings for binaries that are identical but live in different locations.

@nightlark nightlark added the enhancement New feature or request label Jul 30, 2024
@nightlark nightlark changed the title Enhanced support for config files at paths relative to copies of file/symlink Support for config files that differ for copies of the same file/symlink Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant