[Pkg-utopia-maintainers] Bug#1153933: dbus-broker: AppArmor query drops NUL separator when interface is NULL

Viktor Pashaiev w.paszajew at gmail.com
Fri Nov 13 19:52:09 GMT 2026


Package: dbus-broker
Version: 37-5
Severity: important
Tags: patch upstream
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu tenacious ubuntu-patch

Dear Maintainer,

The fix for #1123876 skips `interface` in `build_message_query()` when it is NULL, which also drops its NUL field separator. When a D-Bus method call has no interface (such as KDE Solid's `passphraseReply` when unlocking a LUKS drive), the kernel AppArmor DFA gets 5 fields instead of 6 and denies the call even if the profile has `dbus,`.

The attached patch defaults NULL `path`, `interface`, and `method` to `""` so their NUL separators are always written, matching `dbus-daemon`.

Upstream PR: https://github.com/bus1/dbus-broker/pull/477
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0025-util-apparmor-keep-NUL-separators-for-NULL-fields-in.patch
Type: text/x-diff
Size: 1893 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20261113/caea98cb/attachment-0001.patch>


More information about the Pkg-utopia-maintainers mailing list