mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-21 19:44:57 +00:00
Fix a couple of small bugs when verifying macro/rule objects: 1) Yaml can have document separators "---", and those were mistakenly being considered array items. 2) When reading macros and rules and using array position to find the right document offset, the overall object order should be used (e.g. this is the 5th object from the file) and not the array position (e.g. this is the 3rd rule from the file). Signed-off-by: Mark Stemm <mark.stemm@gmail.com>