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

Method getFirstMatchingRule

src/Daemon/LDAPRuleSet.cpp:114–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 std::shared_ptr<Rule> LDAPRuleSet::getFirstMatchingRule(std::shared_ptr<const Rule> device_rule, uint32_t from_id) const
115 {
116 USBGUARD_LOG(Trace);
117 std::future<void> ft = std::async(std::launch::deferred, std::bind(&LDAPRuleSet::update, *this));
118 ft.get();
119 return RuleSet::getFirstMatchingRule(device_rule, from_id);
120 }
121} /* namespace usbguard */
122
123#endif

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected