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 <mail@gian.im>
  • Loading branch information
mrgian committed Mar 8, 2024
1 parent 517b79e commit 4ef7c95
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 4ef7c95

Please sign in to comment.