| 767 | } |
| 768 | |
| 769 | void Daemon::removeRule(uint32_t id) |
| 770 | { |
| 771 | USBGUARD_LOG(Trace) << "id=" << id; |
| 772 | _policy.removeRule(id); |
| 773 | |
| 774 | if (_config.hasSettingValue("RuleFile") || _config.hasSettingValue("RuleFolder")) { |
| 775 | _policy.save(); |
| 776 | } |
| 777 | } |
| 778 | |
| 779 | const std::vector<Rule> Daemon::listRules(const std::string& label) |
| 780 | { |
no test coverage detected