Skip to content

Commit

Permalink
fix(engine): apply output substitutions for all sources
Browse files Browse the repository at this point in the history
Signed-off-by: Gianmatteo Palmieri <[email protected]>
  • Loading branch information
mrgian authored and poiana committed Mar 25, 2024
1 parent 1882def commit d1707be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions userspace/engine/rule_loader_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,7 @@ void rule_loader::compiler::compile_rule_infos(

// build rule output message
rule.output = r.output;
if (r.source == falco_common::syscall_source)
{
apply_output_substitutions(cfg, rule.output);
}
apply_output_substitutions(cfg, rule.output);

// validate the rule's output
if(!is_format_valid(*cfg.sources.at(r.source), rule.output, err))
Expand Down

0 comments on commit d1707be

Please sign in to comment.