mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-31 06:01:52 +00:00
fix: allow empty exceptions property
This matches prior behavior before the lua-to-c++ switch. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
parent
e909babe20
commit
86d632d343
@ -126,6 +126,12 @@ static void read_rule_exceptions(
|
||||
const YAML::Node& item,
|
||||
rule_loader::rule_info& v)
|
||||
{
|
||||
// An exceptions property with nothing in it is allowed
|
||||
if(item.IsNull())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
THROW(!item.IsSequence(), "Rule exceptions must be a sequence");
|
||||
for (auto &ex : item)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user