mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-29 08:07:24 +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
@ -22,6 +22,8 @@ using namespace falco::app::actions;
|
||||
void extract_base_syscalls_names(const std::unordered_set<std::string>& base_syscalls_names, std::unordered_set<std::string>& positive_names, std::unordered_set<std::string>& negative_names)
|
||||
{
|
||||
for (const std::string &ev : base_syscalls_names)
|
||||
{
|
||||
if (!ev.empty())
|
||||
{
|
||||
if (ev.at(0) == '!')
|
||||
{
|
||||
@ -33,6 +35,7 @@ void extract_base_syscalls_names(const std::unordered_set<std::string>& base_sys
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static libsinsp::events::set<ppm_event_code> extract_rules_event_set(falco::app::state& s)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user