mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-17 00:01:52 +00:00
update(userspace/engine): use s_ prefix for static var.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com> Co-authored-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
parent
bea91ca844
commit
7dcf8f4bf7
@ -40,7 +40,7 @@ extern "C" {
|
|||||||
|
|
||||||
string lua_on_event = "on_event";
|
string lua_on_event = "on_event";
|
||||||
string lua_print_stats = "print_stats";
|
string lua_print_stats = "print_stats";
|
||||||
const std::string falco_engine::m_default_ruleset = "falco-default-ruleset";
|
const std::string falco_engine::s_default_ruleset = "falco-default-ruleset";
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ falco_engine::falco_engine(bool seed_rng, const std::string& alternate_lua_dir)
|
|||||||
srandom((unsigned) getpid());
|
srandom((unsigned) getpid());
|
||||||
}
|
}
|
||||||
|
|
||||||
m_default_ruleset_id = find_ruleset_id(m_default_ruleset);
|
m_default_ruleset_id = find_ruleset_id(s_default_ruleset);
|
||||||
}
|
}
|
||||||
|
|
||||||
falco_engine::~falco_engine()
|
falco_engine::~falco_engine()
|
||||||
|
@ -78,16 +78,16 @@ public:
|
|||||||
// be passed as an argument to process_event(). This allows
|
// be passed as an argument to process_event(). This allows
|
||||||
// for different sets of rules being active at once.
|
// for different sets of rules being active at once.
|
||||||
//
|
//
|
||||||
void enable_rule(const std::string &substring, bool enabled, const std::string &ruleset = m_default_ruleset);
|
void enable_rule(const std::string &substring, bool enabled, const std::string &ruleset = s_default_ruleset);
|
||||||
|
|
||||||
|
|
||||||
// Like enable_rule, but the rule name must be an exact match.
|
// Like enable_rule, but the rule name must be an exact match.
|
||||||
void enable_rule_exact(const std::string &rule_name, bool enabled, const std::string &ruleset = m_default_ruleset);
|
void enable_rule_exact(const std::string &rule_name, bool enabled, const std::string &ruleset = s_default_ruleset);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Enable/Disable any rules with any of the provided tags (set, exact matches only)
|
// Enable/Disable any rules with any of the provided tags (set, exact matches only)
|
||||||
//
|
//
|
||||||
void enable_rule_by_tag(const std::set<std::string> &tags, bool enabled, const std::string &ruleset = m_default_ruleset);
|
void enable_rule_by_tag(const std::set<std::string> &tags, bool enabled, const std::string &ruleset = s_default_ruleset);
|
||||||
|
|
||||||
// Only load rules having this priority or more severe.
|
// Only load rules having this priority or more severe.
|
||||||
void set_min_priority(falco_common::priority_type priority);
|
void set_min_priority(falco_common::priority_type priority);
|
||||||
@ -197,7 +197,7 @@ public:
|
|||||||
//
|
//
|
||||||
void evttypes_for_ruleset(std::string &source,
|
void evttypes_for_ruleset(std::string &source,
|
||||||
std::set<uint16_t> &evttypes,
|
std::set<uint16_t> &evttypes,
|
||||||
const std::string &ruleset = m_default_ruleset);
|
const std::string &ruleset = s_default_ruleset);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Given a source and output string, return an
|
// Given a source and output string, return an
|
||||||
@ -266,7 +266,7 @@ private:
|
|||||||
double m_sampling_multiplier;
|
double m_sampling_multiplier;
|
||||||
|
|
||||||
std::string m_lua_main_filename = "rule_loader.lua";
|
std::string m_lua_main_filename = "rule_loader.lua";
|
||||||
static const std::string m_default_ruleset;
|
static const std::string s_default_ruleset;
|
||||||
uint32_t m_default_ruleset_id;
|
uint32_t m_default_ruleset_id;
|
||||||
|
|
||||||
std::string m_extra;
|
std::string m_extra;
|
||||||
|
Loading…
Reference in New Issue
Block a user