mirror of
https://github.com/falcosecurity/falco.git
synced 2026-04-05 03:22:41 +00:00
Make enable()/disable() virtual so they can be overridden
Subclasses might want to also see when rules are enabled/disabled. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
@@ -85,11 +85,15 @@ public:
|
||||
return m_rulesets[ruleset_id]->event_codes();
|
||||
}
|
||||
|
||||
void enable(const std::string &pattern, match_type match, uint16_t ruleset_id) override {
|
||||
virtual void enable(const std::string &pattern,
|
||||
match_type match,
|
||||
uint16_t ruleset_id) override {
|
||||
enable_disable(pattern, match, true, ruleset_id);
|
||||
}
|
||||
|
||||
void disable(const std::string &pattern, match_type match, uint16_t ruleset_id) override {
|
||||
virtual void disable(const std::string &pattern,
|
||||
match_type match,
|
||||
uint16_t ruleset_id) override {
|
||||
enable_disable(pattern, match, false, ruleset_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user