Skip to content

Commit

Permalink
Proactively enable rules instead of only disabling
Browse files Browse the repository at this point in the history
Previously, rules were enabled by default. Some performance improvements
in draios/sysdig#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.
  • Loading branch information
mstemm committed Jun 7, 2018
1 parent c3b0f0d commit dc0812c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions userspace/engine/lua/rule_loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc0812c

Please sign in to comment.