feat(aa): continue refractoring the aa structure.

This commit is contained in:
Alexandre Pujol 2024-04-19 22:43:02 +01:00
parent 8ef858ad35
commit c97886d960
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
22 changed files with 160 additions and 182 deletions

View file

@ -5,7 +5,7 @@
package aa
type Dbus struct {
Rule
RuleBase
Qualifier
Access string
Bus string
@ -17,7 +17,7 @@ type Dbus struct {
PeerLabel string
}
func newDbusFromLog(log map[string]string) *Dbus {
func newDbusFromLog(log map[string]string) Rule {
name := ""
peerName := ""
if log["mask"] == "bind" {
@ -26,7 +26,7 @@ func newDbusFromLog(log map[string]string) *Dbus {
peerName = log["name"]
}
return &Dbus{
Rule: newRuleFromLog(log),
RuleBase: newRuleFromLog(log),
Qualifier: newQualifierFromLog(log),
Access: log["mask"],
Bus: log["bus"],