Skip to content

Commit

Permalink
interfaces/network-status: fix use of '/' in interface in DBus rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Strandboge committed Feb 23, 2018
1 parent 6ada556 commit 1bb9e40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion interfaces/builtin/network_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const networkStatusConnectedPlugAppArmor = `
# Allow all access to NetworkingStatus service
dbus (send)
bus=system
interface=com.ubuntu.connectivity1.NetworkingStatus{,/**}
interface=com.ubuntu.connectivity1.NetworkingStatus{,*}
path=/com/ubuntu/connectivity1/NetworkingStatus
peer=(label=###SLOT_SECURITY_TAGS###),
Expand Down
2 changes: 1 addition & 1 deletion interfaces/builtin/network_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (s *NetworkStatusSuite) TestAppArmorConnectedPlug(c *C) {
c.Assert(spec.AddConnectedPlug(s.iface, s.plug, s.slot), IsNil)
c.Assert(spec.SecurityTags(), DeepEquals, []string{"snap.consumer.app"})
c.Assert(spec.SnippetForTag("snap.consumer.app"), testutil.Contains, `peer=(label="snap.provider.app"`)
c.Assert(spec.SnippetForTag("snap.consumer.app"), testutil.Contains, "interface=com.ubuntu.connectivity1.NetworkingStatus{,/**}")
c.Assert(spec.SnippetForTag("snap.consumer.app"), testutil.Contains, "interface=com.ubuntu.connectivity1.NetworkingStatus{,*}")
}

func (s *NetworkStatusSuite) TestAppArmorConnectedSlot(c *C) {
Expand Down

0 comments on commit 1bb9e40

Please sign in to comment.