mirror of
https://github.com/falcosecurity/falco.git
synced 2026-04-02 10:02:12 +00:00
Make additional improvements to display relevant context when validating files. This handles cases where a macro/rule overwrites a prior rule. - Instead of saving the index into the array of lines for each rule, save the rule yaml itself, as a property 'context' for each object. - When appending rules, the context of the base macro/rule and the context of the appended rule/macro are concatenated. - New functions get_orig_yaml_obj, build_error, and build_error_with_context handle building the error string. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
Installation
The sysdig grammar uses the lpeg parser. For now install it using luarocks:
luarocks install lpeg.