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
}
|