Skip to content

Commit

Permalink
Merge pull request #4733 from jdstrand/fix-dbus-path-and-interface-typos
Browse files Browse the repository at this point in the history
interfaces/screen-inhibit-control,network-status: fix dbus path and interface typos
  • Loading branch information
mvo5 committed Feb 26, 2018
2 parents 9dc0884 + 1bb9e40 commit 3b1cbdd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion interfaces/builtin/network_status.go
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
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
2 changes: 1 addition & 1 deletion interfaces/builtin/screen_inhibit_control.go
Expand Up @@ -67,7 +67,7 @@ dbus (send)
# API rule
dbus (send)
bus=session
path=/{,org/freedesktop/,org.gnome/}ScreenSaver
path=/{,org/freedesktop/,org/gnome/}ScreenSaver
interface=org.freedesktop.ScreenSaver
member={Inhibit,UnInhibit,SimulateUserActivity}
peer=(label=unconfined),
Expand Down

0 comments on commit 3b1cbdd

Please sign in to comment.