import: missing dlopen_libacl() before fork

tar_x() and tar_c() may use libacl. Hence, libacl should be loaded
before fork.
This commit is contained in:
Yu Watanabe
2026-08-26 08:20:34 +09:00
parent 06318e7b98
commit 1e615d7e4e
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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;
+1
View File
@@ -17,6 +17,7 @@ executables += [
'qcow2-util.c',
),
'dependencies' : [
libacl_cflags,
libarchive_cflags,
libselinux_cflags,
],