mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(aa): add define parameter for variables.
This commit is contained in:
parent
c719a0a109
commit
e9fa0660f8
@ -47,7 +47,7 @@ func TestAppArmorProfile_String(t *testing.T) {
|
||||
Includes: []*Include{{IsMagic: true, Path: "tunables/global"}},
|
||||
Aliases: []*Alias{{Path: "/mnt/usr", RewrittenPath: "/usr"}},
|
||||
Variables: []*Variable{{
|
||||
Name: "exec_path",
|
||||
Name: "exec_path", Define: true,
|
||||
Values: []string{"@{bin}/foo", "@{lib}/foo"},
|
||||
}},
|
||||
},
|
||||
|
@ -73,6 +73,9 @@ type Variable struct {
|
||||
RuleBase
|
||||
Name string
|
||||
Values []string
|
||||
Define bool
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (r *Variable) Less(other any) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user