** Description changed: [ 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 + PPA builds: https://launchpad.net/~steelf/+archive/ubuntu/ppa/+packages?field.name_filter=dbus-broker 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`).
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
