The notify-send tests fail on

  notify-send with no options ... Could not connect: Permission denied
106s ERROR

with

audit: type=1400 audit(1756045349.224:193): apparmor="DENIED"
operation="connect" class="file" profile="notify-send"
name="/tmp/dbusmock_data_w52k7luu/session_bus.socket" pid=2266
comm="notify-send" requested_mask="wr" denied_mask="wr" fsuid=1000
ouid=1000

dbusmock 0.34.3-1 last passed on 2025-08-02 and first failed on
2025-08-08. This corresponds to
https://launchpad.net/ubuntu/+source/apparmor/5.0.0~alpha1-0ubuntu2

  * Add a patch to improve aa-notify command notification fallback:
    - d/p/u/aa-notify-fallback-to-ev-comm-when-ev-execpath.patch


so that all adds up. There's no `aa-disable` command any more 😢 , but that 
dance works around it:

ln -s /etc/apparmor.d/notify-send /etc/apparmor.d/disable/
apparmor_parser -R /etc/apparmor.d/notify-send


** Changed in: python-dbusmock (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

** Changed in: python-dbusmock (Ubuntu)
       Status: Triaged => In Progress

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

Title:
  python-dbusmock autopkgtest failures

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-dbusmock/+bug/2121092/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to