25 #include "RuleSet.hpp" 26 #include "Typedefs.hpp" 33 enum class EventType {
41 void setRuleSet(std::shared_ptr<RuleSet> ptr);
42 std::shared_ptr<RuleSet> getRuleSet();
46 void setDefaultAction(
const std::string& action);
48 uint32_t upsertRule(
const Rule& match_rule,
const Rule& new_rule,
bool parent_insensitive =
false);
49 std::shared_ptr<Rule> getRule(uint32_t
id);
50 bool removeRule(uint32_t
id);
51 std::shared_ptr<Rule> getFirstMatchingRule(std::shared_ptr<const Rule> device_rule, uint32_t from_id = 1)
const;
52 std::vector<std::shared_ptr<const Rule>> getRules();
53 uint32_t assignID(std::shared_ptr<Rule> rule);
63 static std::string eventTypeToString(EventType event);
66 std::shared_ptr<RuleSet> _ruleset_ptr;
Target
Enumeration of possible rule targets.
Definition: Rule.hpp:86
Definition: Policy.hpp:30
Determines whether USB device mathing specified criteria should be authorized, deauthorized or remove...
Definition: Rule.hpp:77
static const uint32_t LastID
Sequence number for specifying that the last rule in the ruleset should be used in context of the ope...
Definition: Rule.hpp:194