mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-07 01:30:13 +00:00
Skip EPF_TABLE_ONLY fields with --list -N
When listing fields with -N (names only), also skip fields with the EPF_TABLE_ONLY flag. (Skipping fields without -N is handled in libs, in the as_string() method). Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
@@ -136,6 +136,12 @@ void falco_engine::list_fields(std::string &source, bool verbose, bool names_onl
|
|||||||
{
|
{
|
||||||
for(auto &field : fld_class.fields)
|
for(auto &field : fld_class.fields)
|
||||||
{
|
{
|
||||||
|
// Skip fields with the EPF_TABLE_ONLY flag.
|
||||||
|
if(field.tags.find("EPF_TABLE_ONLY") != field.tags.end())
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
printf("%s\n", field.name.c_str());
|
printf("%s\n", field.name.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user