XDG_ and DBUS_ variables leaking to build environment

Asked by Michał Sawicz

This happened last night:

https://launchpad.net/~mir-team/+archive/ubuntu/dev/+build/24316385

vs.

https://launchpad.net/~mir-team/+archive/ubuntu/dev/+build/24325645

```diff
 User Environment
 ----------------

 APT_CONFIG=/var/lib/sbuild/apt.conf
+DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/2001/bus
 DEB_BUILD_OPTIONS=parallel=4
 HOME=/sbuild-nonexistent
 LANG=C.UTF-8
 LC_ALL=C.UTF-8
 LOGNAME=buildd
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
-SCHROOT_ALIAS_NAME=build-PACKAGEBUILD-24316385
-SCHROOT_CHROOT_NAME=build-PACKAGEBUILD-24316385
+SCHROOT_ALIAS_NAME=build-PACKAGEBUILD-24325645
+SCHROOT_CHROOT_NAME=build-PACKAGEBUILD-24325645
 SCHROOT_COMMAND=env
 SCHROOT_GID=2501
 SCHROOT_GROUP=buildd
-SCHROOT_SESSION_ID=build-PACKAGEBUILD-24316385
+SCHROOT_SESSION_ID=build-PACKAGEBUILD-24325645
 SCHROOT_UID=2001
 SCHROOT_USER=buildd
 SHELL=/bin/sh
 TERM=unknown
 USER=buildd
 V=1
+XDG_RUNTIME_DIR=/run/user/2001
+XDG_SESSION_CLASS=background
+XDG_SESSION_ID=c80
+XDG_SESSION_TYPE=unspecified
```

This happened before, and was attributed to a builder VM update. This was rolled back, but never properly root-caused.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
Colin Watson Edit question
Solved by:
Colin Watson
Solved:
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

On the contrary, it was properly root-caused in https://bugs.launchpad.net/launchpad-buildd/+bug/1964615, but our cherry-picked fix was superseded by a security update. Thanks for the heads-up - I'll get this fixed.

Revision history for this message
Michał Sawicz (saviq) said :
#2

Ah sorry, my memory got stuck in previous state of the resolution.

Revision history for this message
Best Colin Watson (cjwatson) said :
#3

This is fixed again now.

Revision history for this message
Michał Sawicz (saviq) said :
#4

Thanks!