From 1e615d7e4e6243c228694d49446f50ead2879b96 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 26 Aug 2026 06:26:34 +0900 Subject: [PATCH] import: missing dlopen_libacl() before fork tar_x() and tar_c() may use libacl. Hence, libacl should be loaded before fork. --- src/import/import-common.c | 3 +++ src/import/meson.build | 1 + 2 files changed, 4 insertions(+) diff --git a/src/import/import-common.c b/src/import/import-common.c index 0b63828869..eb828d6b14 100644 --- a/src/import/import-common.c +++ b/src/import/import-common.c @@ -5,6 +5,7 @@ #include "sd-event.h" +#include "acl-util.h" #include "capability-util.h" #include "compress.h" #include "dirent-util.h" @@ -31,6 +32,7 @@ int import_fork_tar_x(int tree_fd, int userns_fd, PidRef *ret_pid) { assert(tree_fd >= 0); assert(ret_pid); + (void) dlopen_libacl(LOG_DEBUG); r = dlopen_libarchive(LOG_DEBUG); if (r < 0) return r; @@ -99,6 +101,7 @@ int import_fork_tar_c(int tree_fd, int userns_fd, PidRef *ret_pid) { assert(tree_fd >= 0); assert(ret_pid); + (void) dlopen_libacl(LOG_DEBUG); r = dlopen_libarchive(LOG_DEBUG); if (r < 0) return r; diff --git a/src/import/meson.build b/src/import/meson.build index 1bfdba1e55..a1ac50594f 100644 --- a/src/import/meson.build +++ b/src/import/meson.build @@ -17,6 +17,7 @@ executables += [ 'qcow2-util.c', ), 'dependencies' : [ + libacl_cflags, libarchive_cflags, libselinux_cflags, ],