feat(aa): improve rule creation from log.
This commit is contained in:
parent
13de4182c8
commit
c7485326e8
15 changed files with 62 additions and 57 deletions
|
|
@ -33,9 +33,9 @@ type Network struct {
|
|||
AddressExpr
|
||||
}
|
||||
|
||||
func NetworkFromLog(log map[string]string, noNewPrivs, fileInherit bool) ApparmorRule {
|
||||
func NetworkFromLog(log map[string]string) ApparmorRule {
|
||||
return &Network{
|
||||
Qualifier: NewQualifier(false, noNewPrivs, fileInherit),
|
||||
Qualifier: NewQualifierFromLog(log),
|
||||
AddressExpr: AddressExpr{
|
||||
Source: log["laddr"],
|
||||
Destination: log["faddr"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue