Public bug reported: [ Impact ] In `build_message_query()` (`src/util/apparmor.c`), NULL `path`, `interface`, or `method` fields are skipped together with their NUL byte separator. When a D-Bus method call has no interface (`interface=""`), the kernel AppArmor DFA gets 5 fields instead of 6 and denies the call even if the profile has `dbus,`. This breaks unlocking LUKS drives in KDE Plasma (`passphraseReply` on `/org/kde/solid/UDisks2StorageAccess_*`).
[ Fix ] Default NULL `path`, `interface`, and `method` to `""` in `build_message_query()` so the NUL separator is always written, matching `dbus-daemon`. [ Test Plan ] 1. Load `/etc/apparmor.d/plasmashell` in enforce mode. 2. Unlock a LUKS drive in KDE Plasma (or send a session D-Bus call with an empty interface to `plasmashell`). 3. Verify the call is allowed without AppArmor denials in the journal. 4. Run the build-time test suite (`meson test`, 50/50 passing). [ Where problems could occur ] Only affects AppArmor D-Bus message query strings when `path`, `interface`, or `method` is NULL. [ Other Info ] Upstream PR: https://github.com/bus1/dbus-broker/pull/477 Debian BTS: https://bugs.debian.org/1153933 Discourse report: https://discourse.ubuntu.com/t/ubuntu-26-10-luks-and-plasma-kde/91911 Regression from the fix for Debian bug #1123876 (`0009-apparmor-fix-segfault-when-no-interface-is-available.patch`). ** Affects: dbus-broker (Ubuntu) Importance: Undecided Status: New ** Affects: dbus-broker (Debian) Importance: Undecided Status: New ** Tags: patch stonking tenacious ** Bug watch added: Debian Bug tracker #1153933 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153933 ** Changed in: dbus-broker (Debian) Remote watch: None => Debian Bug tracker #1153933 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to dbus-broker in Ubuntu. https://bugs.launchpad.net/bugs/2174442 Title: AppArmor query drops NUL separator when interface is NULL To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dbus-broker/+bug/2174442/+subscriptions -- desktop-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
