+ su -l -c test-snapd-system-observe-consumer.dbus-introspect test
Traceback (most recent call last):
File "/snap/test-snapd-system-observe-consumer/6/bin/dbus-introspect", line 10, in <module>
sys.exit(run())
File "/snap/test-snapd-system-observe-consumer/6/bin/dbus-introspect", line 6, in run
obj = dbus.SystemBus().get_object("org.freedesktop.hostname1", "/org/freedesktop/hostname1")
File "/snap/test-snapd-system-observe-consumer/6/usr/lib/python3/dist-packages/dbus/_dbus.py", line 194, in __new__
private=private)
File "/snap/test-snapd-system-observe-consumer/6/usr/lib/python3/dist-packages/dbus/_dbus.py", line 100, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/snap/test-snapd-system-observe-consumer/6/usr/lib/python3/dist-packages/dbus/bus.py", line 122, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Failed to query AppArmor policy: Permission denied
+ su -l -c test-snapd- system- observe- consumer. dbus-introspect test test-snapd- system- observe- consumer/ 6/bin/dbus- introspect" , line 10, in <module> test-snapd- system- observe- consumer/ 6/bin/dbus- introspect" , line 6, in run ).get_object( "org.freedeskto p.hostname1" , "/org/freedeskt op/hostname1" ) test-snapd- system- observe- consumer/ 6/usr/lib/ python3/ dist-packages/ dbus/_dbus. py", line 194, in __new__ private) test-snapd- system- observe- consumer/ 6/usr/lib/ python3/ dist-packages/ dbus/_dbus. py", line 100, in __new__ __new__ (subclass, bus_type, mainloop=mainloop) test-snapd- system- observe- consumer/ 6/usr/lib/ python3/ dist-packages/ dbus/bus. py", line 122, in __new__ for_bus( address_ or_type, mainloop=mainloop) .DBusException: org.freedesktop .DBus.Error. AccessDenied: Failed to query AppArmor policy: Permission denied
Traceback (most recent call last):
File "/snap/
sys.exit(run())
File "/snap/
obj = dbus.SystemBus(
File "/snap/
private=
File "/snap/
bus = BusConnection.
File "/snap/
bus = cls._new_
dbus.exceptions