• Pl chevron_right

      Bastien Nocera: bluez news 2026

      news.movim.eu / PlanetGnome • 12:06 • 5 minutes

    It's been a while since I've been able to post about something I've been working on, such is the fate of a software “maintenance” engineer[1].

     Here are some things that I've been working on, on the bluez side of Linux Bluetooth. My colleague David Marlin and I used to share the load on the kernel work, with me doing some user-space incursions, but it was decided early 2025 that I focus solely on the user-space side, leaving the kernel side up to David.

    meson build system port

      Since summer 2025, I've been refining a patch set to port bluez from autotools to meson. I don't think I need to explain the benefits to most of the readers of this blog, especially when jumping from autotools, but there were definitely some bluez-specific benefits.

      First, it was much easier to implement some long-standing feature requests, such as being able to disable building the bluetoothd daemon or internal libraries, simplifying the use of the ell helper library (it's a copy-paste library that bluez can use from its copy-paste version or from the system[2]), and in addition to the inherent rapidity of meson and ninja, we also made the test suite go from taking 50 seconds under the autotools to less than 4 using meson.

    docs!

      Secondly, this meson port made it much easier to find examples of modern API docs deployments in other projects, and I settled on modelling our own docs on xdg-desktop-portal, which also had a mix of D-Bus and command-line tools man pages to display in its HTML documentation.

     

    Temporary docs website

    This reuses style and logos from another as of yet incomplete project, a modernisation of the BlueZ website (thanks to George Kiagiadakis, Collabora and Jon Wallace design for that work). We're waiting on some infrastructure problems to be solved before at least deploying the new website, hopefully the docs aren't too far behind.

    Tests

    Thirdly, as I took time to fix some long-standing niggling issues in some command-line tools (e.g. tools hanging when they should time out, timing out when they should wait, etc.), I integrated a simple regression test suite for those utilities, so that I don't have to fix those bugs again in the future.

    The tests I added are very much focused on a subset of command-line utilities, but a much bigger end-to-end test suite using the vhci driver, and either VMs or User-Mode Linux also landed thanks to Pauli Virtanen's work. This can run regression and integration tests with bluez and PipeWire which should stop some of the regressions we've seen when doing releases.

    Rust?

      Fourthly (yes, we're still making a list), adding meson makes it possible to integrate Rust code into the build system without much special handling. I only had the time to experiment, just enough to create a dummy bluetoothd plugin. This exploratory work still managed to yield some API cleanup patches in bluez, and a couple of bug/docs issues filed against meson.

     At this point, I could probably conclude and make a list of other Linux hardware daemon projects that use meson and C/Rust mixed code bases, but we're not done just yet.

    Security policy

      Let’s go back to the infrastructure problems we mentioned above regarding our inability to deploy a new website with its docs. The bluez.org website, and the mail aliases it hosts, stopped working some time earlier this year. You could say that the website itself is probably not such a big deal, but among the e-mail aliases it hosts was the security@ email mentioned in the documentation on how to report security issues...

      I spent a large part of the summer discussing, implementing and documenting the new security policy for bluez so that we could start guiding all of our energy triaging issues that came in outside of the process (remember that the security@ email alias was a blackhole for a couple of months), sorting the issues and fixing them. Thanks to the bluez maintainer Luiz Augusto von Dentz and Marco Benatto from the Red Hat product security team for their help writing something that could help us clearly communicate expectations with security researchers as well as our downstreams (distributions and integrators). 

    CVEs

      The internal processes inside the bluez upstream project could still use some refinement, but at least I now know how to publish security advisories and ask for CVEs, creating more work for my downstream self.

      Without getting too much into the details, the bluez project still has a lot of "invisible" work to do.

    Sticking the landing

      I mentioned a lot of different types of work above, but as you can imagine, they're still all very much connected:

    • we have integration and regression tests for bugs and security issues
    • we have a build system which we hope will make it easier to build with different analysis tools, debugging options, compilers and Linux variants to catch problems, whether they're security issues or innocuous bugs
    • we have browseable and searchable online documentation
    • we have tools to experiment with more secure programming languages 

    But I hope that bluez can follow in the footsteps of projects like QEMU or systemd in adopting meson and Rust for the longer-term sustainability of the project.

    What's next

    Apart from landing the patch sets for the feature mentioned earlier in this post, I have a couple of personal goals tied to the project.

    The first one would be to try and grow that inner maintainer circle. We have weekly meeting amongst bluez contributors from Bluetooth SIG member companies. If your company is a member of the Bluetooth SIG and you have a vested interest in bluez, make yourself known on the BlueZ Slack.

    The second one would be to try and modernise our development practices. We've had a lot of problems either getting contributions in the first place (setting up git-send-email is a bit of a chore, especially if you thought the project’s presence on GitHub meant you could contribute there) or following-up past the first patch submission. It’s not uncommon for maintainers to clean up contributions before integrating them, but the e-mail review queue makes it more difficult to resurface interesting contributions that just need a tiny push versus patchsets that require extensive work.

    It's not impossible that we switch bluez (just the user-space side) to a forge, likely GitHub because of our use of its security advisory handling. We might be able to switch to Freedesktop.org's gitlab instance, bringing us closer to related projects like PipeWire, but we would need a long-term sponsor for the CI pipeline machines, so don’t hesitate to reach out if it’s something your company would be interested in providing.

    [1]: In some countries, I can't call myself an engineer because I don't have an engineering degree, the Wikipedia page on that subject makes for an interesting read. 

    [2]: ell also got ported to meson, and is in the process of getting added to the meson wrap database, but a number of patches are still pending that block that work.