MCPcopy
hub / github.com/evilsocket/opensnitch / overwriteFw

Function overwriteFw

daemon/main.go:156–168  ·  view source on GitHub ↗

overwriteFw reloads the fw with the configuration file specified via cli.

(cfg *config.Config, qNum uint16, fwCfg string)

Source from the content-addressed store, hash-verified

154
155// overwriteFw reloads the fw with the configuration file specified via cli.
156func overwriteFw(cfg *config.Config, qNum uint16, fwCfg string) {
157 firewall.Reload(
158 cfg.Firewall,
159 fwCfg,
160 cfg.FwOptions.MonitorInterval,
161 cfg.FwOptions.QueueBypass,
162 qNum,
163 )
164 // TODO: Close() closes the daemon if closing the queue timeouts
165 //queue.Close()
166 //repeatQueue.Close()
167 //setupQueues(qNum)
168}
169
170func setupQueues(qNum uint16) {
171 // prepare the queue

Callers 1

mainFunction · 0.85

Calls 1

ReloadMethod · 0.45

Tested by

no test coverage detected