Skip to content

Commit

Permalink
Revert "fix(engine): apply output substitutions for all sources"
Browse files Browse the repository at this point in the history
This reverts commit 4ef7c95.

Signed-off-by: Gianmatteo Palmieri <[email protected]>
  • Loading branch information
mrgian authored and poiana committed Jun 5, 2024
1 parent 3539572 commit 1c66b64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion userspace/engine/rule_loader_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,10 @@ void rule_loader::compiler::compile_rule_infos(

// build rule output message
rule.output = r.output;
apply_output_substitutions(cfg, rule.output);
if (r.source == falco_common::syscall_source)
{
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 1c66b64

Please sign in to comment.