MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / removeAllowRules

Method removeAllowRules

pkg/rules/action/isolate_windows.go:151–155  ·  view source on GitHub ↗

nolint:unused

()

Source from the content-addressed store, hash-verified

149
150//nolint:unused
151func (f *firewall) removeAllowRules() error {
152 f.mu.Lock()
153 defer f.mu.Unlock()
154 return multierror.Wrap(f.s.DeleteRule(inboundAllowRuleID), f.s.DeleteRule(outboundAllowRuleID))
155}
156
157func (f *firewall) hasAllowRules() bool {
158 f.mu.Lock()

Callers

nothing calls this directly

Calls 3

WrapFunction · 0.92
LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected