Skip to content

Instantly share code, notes, and snippets.

View c-brooks's full-sized avatar

Corey Brooks c-brooks

  • Vancouver, Canada
View GitHub Profile
@c-brooks
c-brooks / iptables_excerpt.go
Created September 4, 2018 00:29
excerpt of kubernetes/pkg/util/iptables/iptables.go
// Connects to D-Bus and listens for FirewallD start/restart. (On non-FirewallD-using
// systems, this is effectively a no-op; we listen for the signals, but they will never be
// emitted, so reload() will never be called.)
func (runner *runner) connectToFirewallD() {
bus, err := runner.dbus.SystemBus()
if err != nil {
glog.V(1).Infof("Could not connect to D-Bus system bus: %s", err)
return
}
runner.hasListener = true

Keybase proof

I hereby claim:

  • I am c-brooks on github.
  • I am cbrooks (https://keybase.io/cbrooks) on keybase.
  • I have a public key ASBTWSdHOkYnOAmmahb2OjAttBRaqZbeLy-njyVauqe_JQo

To claim this, I am signing this object: