mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
nspawn: load three libraries we'll need later before we fork() a child
This commit is contained in:
@@ -47,6 +47,7 @@ executables += [
|
||||
include_directories('.')
|
||||
],
|
||||
'dependencies' : [
|
||||
libmount_cflags,
|
||||
libseccomp_cflags,
|
||||
libselinux_cflags,
|
||||
],
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
#include "image-policy.h"
|
||||
#include "in-addr-util.h"
|
||||
#include "io-util.h"
|
||||
#include "libmount-util.h"
|
||||
#include "log.h"
|
||||
#include "loop-util.h"
|
||||
#include "loopback-setup.h"
|
||||
@@ -5965,6 +5966,10 @@ static int run(int argc, char *argv[]) {
|
||||
if (arg_cleanup)
|
||||
return do_cleanup();
|
||||
|
||||
(void) dlopen_libmount();
|
||||
(void) dlopen_libseccomp();
|
||||
(void) dlopen_libselinux();
|
||||
|
||||
r = cg_has_legacy();
|
||||
if (r < 0)
|
||||
goto finish;
|
||||
|
||||
Reference in New Issue
Block a user