build: exex directive: add support for transition.
This commit is contained in:
parent
a5f71675ea
commit
73fe7a7475
2 changed files with 38 additions and 10 deletions
|
|
@ -30,6 +30,20 @@ func TestExec_Apply(t *testing.T) {
|
|||
profile: ` #aa:exec DiscoverNotifier`,
|
||||
want: ` @{lib}/DiscoverNotifier Px,
|
||||
@{lib}/@{multiarch}/{,libexec/}DiscoverNotifier Px,
|
||||
`,
|
||||
},
|
||||
{
|
||||
name: "exec-unconfined",
|
||||
rootApparmord: paths.New("../../../apparmor.d/groups/freedesktop/"),
|
||||
opt: &Option{
|
||||
Name: "exec",
|
||||
Args: map[string]string{"U": "", "polkit-agent-helper": ""},
|
||||
File: nil,
|
||||
Raw: " #aa:exec U polkit-agent-helper",
|
||||
},
|
||||
profile: ` #aa:exec U polkit-agent-helper`,
|
||||
want: ` @{lib}/polkit-[0-9]/polkit-agent-helper-[0-9] Ux,
|
||||
@{lib}/polkit-agent-helper-[0-9] Ux,
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue