Skip to content

Commit

Permalink
i/b/docker_support_test.go: update accordingly to 277fbc2 (many: add …
Browse files Browse the repository at this point in the history
…components to interfaces.SnapAppSet (canonical#13837))
  • Loading branch information
jslarraz committed Jun 10, 2024
1 parent f61a504 commit 999ada8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interfaces/builtin/docker_support_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,9 @@ ptrace (read, trace) peer=unconfined,
c.Assert(err, IsNil)

// Profile generated using GenerateAAREExclusionPatterns
apparmorSpec := apparmor.NewSpecification(interfaces.NewSnapAppSet(s.privContainersPlug.Snap()))
appSet, err := interfaces.NewSnapAppSet(s.privContainersPlug.Snap(), nil)
c.Assert(err, IsNil)
apparmorSpec := apparmor.NewSpecification(appSet)
c.Assert(apparmorSpec.AddConnectedPlug(s.iface, s.privContainersPlug, s.slot), IsNil)
c.Assert(apparmorSpec.SecurityTags(), DeepEquals, []string{"snap.docker.app"})
resHash, err := testutil.AppArmorParseAndHashHelper("#include <tunables/global> \nprofile docker_support {" + apparmorSpec.SnippetForTag("snap.docker.app") + "}")
Expand Down

0 comments on commit 999ada8

Please sign in to comment.