-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auditbeat/module/file_integrity: encode POSIXACLAccess as []byte (#36351
) When encoded as a string, the logic within the module works correctly, but the logged data is passed through the JSON serialisation logic which will ensure that all the unicode code points are valid. It is not necessarily true that all the bytes in the data for this field are valid (almost guaranteed not to be given that invalid qualifiers are represented by 0xffffffff). So use a []byte to hold this data. This has the additional advantage that the representation in the logs will be almost exactly what getfattr shows for this; the only difference being a "0s" prefix added by getfattr.
- Loading branch information
Showing
5 changed files
with
47 additions
and
17 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.