summaryrefslogtreecommitdiff
diff options
authorZeyad Gouda <zeyad.gouda@canonical.com>2023-08-01 14:26:48 +0300
committeralfonsosanchezbeato <alfonsosanchezbeato@yahoo.es>2023-08-01 14:04:41 +0100
commit0b69df78e4a9b8d9c603fccbed4fbdacaf591a25 (patch)
tree1664e20f0ee24fd403edd227d973d88bcdcd8f2f
parentd0c82ebb3b952adcada9c93593f2b6aef0de59d6 (diff)
interfaces/builtin/pulseaudio_test: fix apparmor checking incorrect permissions
Signed-off-by: Zeyad Gouda <zeyad.gouda@canonical.com>
-rw-r--r--interfaces/builtin/pulseaudio_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/interfaces/builtin/pulseaudio_test.go b/interfaces/builtin/pulseaudio_test.go
index 8f76b5360c..fc6773b300 100644
--- a/interfaces/builtin/pulseaudio_test.go
+++ b/interfaces/builtin/pulseaudio_test.go
@@ -129,7 +129,7 @@ func (s *PulseAudioInterfaceSuite) TestApparmorOnClassic(c *C) {
spec := &apparmor.Specification{}
c.Assert(spec.AddConnectedPlug(s.iface, s.plug, s.classicSlot), IsNil)
c.Assert(spec.SecurityTags(), DeepEquals, []string{"snap.other.app2"})
- c.Check(spec.SnippetForTag("snap.other.app2"), testutil.Contains, "owner /{,var/}run/user/*/pulse/ rwk,\n")
+ c.Check(spec.SnippetForTag("snap.other.app2"), testutil.Contains, "owner /{,var/}run/user/*/pulse/ r,\n")
c.Check(spec.SnippetForTag("snap.other.app2"), testutil.Contains, "owner /{,var/}run/user/*/pulse/native rwk,\n")
c.Check(spec.SnippetForTag("snap.other.app2"), testutil.Contains, "owner /{,var/}run/user/*/pulse/pid r,\n")
c.Check(spec.SnippetForTag("snap.other.app2"), Not(testutil.Contains), "owner /run/user/[0-9]*/snap.pulseaudio/pulse/ r,\n")
@@ -142,7 +142,7 @@ func (s *PulseAudioInterfaceSuite) TestApparmorOnCoreNotSnapd(c *C) {
spec := &apparmor.Specification{}
c.Assert(spec.AddConnectedPlug(s.iface, s.plug, s.coreSlot), IsNil)
c.Assert(spec.SecurityTags(), DeepEquals, []string{"snap.other.app2"})
- c.Check(spec.SnippetForTag("snap.other.app2"), testutil.Contains, "owner /{,var/}run/user/*/pulse/ rwk,\n")
+ c.Check(spec.SnippetForTag("snap.other.app2"), testutil.Contains, "owner /{,var/}run/user/*/pulse/ r,\n")
c.Check(spec.SnippetForTag("snap.other.app2"), testutil.Contains, "owner /{,var/}run/user/*/pulse/native rwk,\n")
c.Check(spec.SnippetForTag("snap.other.app2"), testutil.Contains, "owner /{,var/}run/user/*/pulse/pid r,\n")
c.Check(spec.SnippetForTag("snap.other.app2"), testutil.Contains, "owner /run/user/[0-9]*/snap.pulseaudio/pulse/ r,\n")