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:
@@ -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;
|
||||
|
||||
@@ -17,6 +17,7 @@ executables += [
|
||||
'qcow2-util.c',
|
||||
),
|
||||
'dependencies' : [
|
||||
libacl_cflags,
|
||||
libarchive_cflags,
|
||||
libselinux_cflags,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user