-
Notifications
You must be signed in to change notification settings - Fork 21
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
Implementation of kernel module extractor. #359
base: main
Are you sure you want to change the base?
Conversation
Looks like some files changed upstream since this PR got created to you'll have to resolve some merge conflicts |
|
||
// Sections are delimited by null bytes (\x00) | ||
for _, line := range bytes.Split(sectionData, []byte{'\x00'}) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix linter error: module.go:186:65: unnecessary leading newline (whitespace)
@@ -54,6 +54,14 @@ type Config struct { | |||
MaxFileSizeBytes int64 | |||
} | |||
|
|||
type ModuleMetadata struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not reuse the Metadata struct from metadata.go? And then you can just pass the metadata struct to the inventory initialization directly
Pull request for the kernel module extractor.
Implemented: