mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-30 08:32:12 +00:00
fix(app_actions): base_syscalls check for empty string
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
This commit is contained in:
parent
58dc60e58d
commit
0de9af9ed0
@ -23,13 +23,16 @@ void extract_base_syscalls_names(const std::unordered_set<std::string>& base_sys
|
|||||||
{
|
{
|
||||||
for (const std::string &ev : base_syscalls_names)
|
for (const std::string &ev : base_syscalls_names)
|
||||||
{
|
{
|
||||||
if(ev.at(0) == '!')
|
if (!ev.empty())
|
||||||
{
|
{
|
||||||
negative_names.insert(ev.substr(1, ev.size()));
|
if (ev.at(0) == '!')
|
||||||
}
|
{
|
||||||
else
|
negative_names.insert(ev.substr(1, ev.size()));
|
||||||
{
|
}
|
||||||
positive_names.insert(ev);
|
else
|
||||||
|
{
|
||||||
|
positive_names.insert(ev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user