]> git.ipfire.org Git - thirdparty/dbus.git/commit
selinux: Don't include unused reference count in verbose logging
authorSimon McVittie <smcv@collabora.com>
Tue, 18 Feb 2025 10:37:28 +0000 (10:37 +0000)
committerSimon McVittie <smcv@collabora.com>
Tue, 18 Feb 2025 10:37:37 +0000 (10:37 +0000)
commita57bb89673948be84dc39e9f0abb4fc82cfdd63e
treed27559c942c546be32149c5719f7106fb1e93118
parent8ca823d38f4d028b7844f204b1787bbc03b3a0f4
selinux: Don't include unused reference count in verbose logging

libselinux 3.8 includes an API break in which the `refcnt` field of
struct security_id_t (originally intended to be a reference count, but
in practice always initialized to 1 and never modified) was renamed and
repurposed as an `id` field. This caused a build failure if dbus was
compiled with both SELinux support and verbose mode, for example in the
instrumented debug build that Debian includes in the `dbus-tests` package.

This particular piece of debug logging has little value, so just
remove it.

Reference: https://github.com/SELinuxProject/selinux/commit/e5fd7b078fb8eb0b15eb5beaccd0e6a07ec26758
Bug-Debian: https://bugs.debian.org/1096212
Signed-off-by: Simon McVittie <smcv@collabora.com>
bus/selinux.c