MCPcopy Create free account
hub / github.com/USBGuard/usbguard / removeRule

Method removeRule

src/Daemon/Daemon.cpp:769–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

usbguard_remove_ruleFunction · 0.45

Calls 2

hasSettingValueMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected