mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-09 02:29:36 +00:00
Enable all rules (#379)
* Proactively enable rules instead of only disabling Previously, rules were enabled by default. Some performance improvements in https://github.com/draios/sysdig/pull/1126 broke this, requiring that each rule is explicitly enabled or disabled for a given ruleset. So if enabled is true, explicitly enable the rule for the default ruleset. * Get rid of shadowed res variable. It was used both for the inspector loop and the falco result.
This commit is contained in:
@@ -449,6 +449,8 @@ function load_rules(rules_content, rules_mgr, verbose, all_events, extra, replac
|
||||
|
||||
if (v['enabled'] == false) then
|
||||
falco_rules.enable_rule(rules_mgr, v['rule'], 0)
|
||||
else
|
||||
falco_rules.enable_rule(rules_mgr, v['rule'], 1)
|
||||
end
|
||||
|
||||
-- If the format string contains %container.info, replace it
|
||||
|
Reference in New Issue
Block a user