[lxc/lxc] 820d2a: switch from libsystemd's dbus to dbus-1

5 views
Skip to first unread message

Serge Hallyn

unread,
Mar 19, 2023, 6:05:21 PM3/19/23
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 820d2a2b3a886ebfe46cd256ba8c320e50fcc5cd
https://github.com/lxc/lxc/commit/820d2a2b3a886ebfe46cd256ba8c320e50fcc5cd
Author: Serge Hallyn <se...@hallyn.com>
Date: 2023-03-19 (Sun, 19 Mar 2023)

Changed paths:
M .github/workflows/build.yml
M .github/workflows/cifuzz.yml
M .github/workflows/coverity.yml
M .github/workflows/sanitizers.sh
M .github/workflows/sanitizers.yml
M lxc.spec.in
M meson.build
M meson_options.txt
M src/lxc/cgroups/cgfsng.c
M src/tests/oss-fuzz.sh

Log Message:
-----------
switch from libsystemd's dbus to dbus-1

This is purely so that we can do static linking. Linking against
libsystemd makes that a challenge because while it's perfectly simple
to do, distros tend not to provide a libsystemd.a.

Tools that want to (a) link against liblxc and (b) have a statically
linked binary to bind into a minimal container are ill served by
this. So link against libdbus-1.

.github/workflows/build.yml: switch to dbus-1.
src/lxc/cgroups/cgfsng.c: replace the unpriv_systemd_create_scope(),
start_scope, and enter_scope() systemd code with dbus-1 code.
src/tests/oss-fuzz.sh: update from libsystemd-dev to libdbus-1-dev
src/tests/oss-fuzz.sh: disable dbus
.github/workflows/*: update from libsystemd-dev to libdbus-1-dev
meson.build and meson_options.txt: switch from sd_bus to dbus
lxc.spec.in: add dbus-1 to BuildRequires

Signed-off-by: Serge Hallyn <se...@hallyn.com>

Changelog: 03/13: use custom iter type so we can cleanup more easily...
Changelog: 03/13: initialize each dbus_iter to { 0 } as mihalicyn suggested.


Commit: 5894cf31014d15af1f352d15fc2633eec1d99237
https://github.com/lxc/lxc/commit/5894cf31014d15af1f352d15fc2633eec1d99237
Author: Serge Hallyn <se...@hallyn.com>
Date: 2023-03-19 (Sun, 19 Mar 2023)

Changed paths:
M src/tests/console_log.c

Log Message:
-----------
console-log test: make sure container is stopped before restarting

Closes #4237

Signed-off-by: Serge Hallyn <se...@hallyn.com>


Commit: 52326514c64b6622368475307d7a7a76c3ee3780
https://github.com/lxc/lxc/commit/52326514c64b6622368475307d7a7a76c3ee3780
Author: Serge Hallyn <se...@hallyn.com>
Date: 2023-03-19 (Sun, 19 Mar 2023)

Changed paths:
M .github/workflows/build.yml
M .github/workflows/cifuzz.yml
M .github/workflows/coverity.yml
M .github/workflows/sanitizers.sh
M .github/workflows/sanitizers.yml
M lxc.spec.in
M meson.build
M meson_options.txt
M src/lxc/cgroups/cgfsng.c
M src/tests/console_log.c
M src/tests/oss-fuzz.sh

Log Message:
-----------
Merge pull request #4287 from hallyn/2023-03-10/dbus

switch from libsystemd's dbus to dbus-1


Compare: https://github.com/lxc/lxc/compare/12887ebcc6af...52326514c64b
Reply all
Reply to author
Forward
0 new messages