Ubuntu Pastebin

Paste from abeato at Tue, 27 Sep 2016 12:56:58 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
var pppConnectedPlugKmod = []byte(`
ppp_generic
`)

...

func (iface *PppInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error) {
	switch securitySystem {
	case interfaces.SecurityAppArmor:
		return pppConnectedPlugAppArmor, nil
	case interfaces.SecurityKMod:
		return pppConnectedPlugKmod, nil
	}
	return nil, nil
}
Download as text