Public bug reported:

I'm getting DBus DENIED errors when trying to get a list of mount points
using `DBus.Properties.Get` call on the
"/org/freedesktop/UDisks2/block_devices/mmcblk0p2" path.

I think it's because DBus part of "udisks2:service" slot of the
"udisks2" interface is too restrictive on this particular type of
message.

Look at connected slot apparmor[1], you will see that it allows sending
DBus.Properties interface messages, but not receiving them. That snippet
is inserted to the udisks2 AppArmor file and only allows udisks2 to send
DBus.Properties message from udisks2 to the client, but not vice versa.

More information could be found in the bash session[2].


[1]. 
https://github.com/snapcore/snapd/blob/master/interfaces/builtin/udisks2.go#L115
[2]. https://paste.ubuntu.com/25563352/

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- UDisks2 interface restricts sending DBus.Properties.Get message from our 
client to udiskd service
+ UDisks2 interface restricts sending DBus.Properties.Get message from the 
client to udisksd service

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1717857

Title:
  UDisks2 interface restricts sending DBus.Properties.Get message from
  the client to udisksd service

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1717857/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to