diff --git a/pkg/aa/apparmor_test.go b/pkg/aa/apparmor_test.go index 3c1bcaa11..ae39caef1 100644 --- a/pkg/aa/apparmor_test.go +++ b/pkg/aa/apparmor_test.go @@ -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"}, }}, }, diff --git a/pkg/aa/preamble.go b/pkg/aa/preamble.go index 8b6506297..d10b4dfbb 100644 --- a/pkg/aa/preamble.go +++ b/pkg/aa/preamble.go @@ -73,6 +73,9 @@ type Variable struct { RuleBase Name string Values []string + Define bool +} + } func (r *Variable) Less(other any) bool {