-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't exec uname for node attribute kernel.version
Previously with client fingerprinting, sys/exec's Command function was being used to execute `uname -r` and the return string processed into the kernel.version node attribute. This change uses gopsutil/host KernelVersion function instead. This means we can drop the os/exec, strings and fmt imports... and not execute an external binary. Signed-off-by: Dave Walker (Daviey) <[email protected]>
- Loading branch information
Showing
2 changed files
with
2 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters