mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
execute: load a bunch of libs before we disable dlopen()
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "constants.h"
|
||||
#include "copy.h"
|
||||
#include "coredump-util.h"
|
||||
#include "cryptsetup-util.h"
|
||||
#include "dissect-image.h"
|
||||
#include "dynamic-user.h"
|
||||
#include "env-util.h"
|
||||
@@ -48,6 +49,7 @@
|
||||
#include "io-util.h"
|
||||
#include "iovec-util.h"
|
||||
#include "journal-send.h"
|
||||
#include "libmount-util.h"
|
||||
#include "manager.h"
|
||||
#include "memfd-util.h"
|
||||
#include "mkdir-label.h"
|
||||
@@ -5818,6 +5820,12 @@ int exec_invoke(
|
||||
}
|
||||
}
|
||||
|
||||
/* Load a bunch of libraries we'll possibly need later, before we turn off dlopen() */
|
||||
(void) dlopen_bpf();
|
||||
(void) dlopen_cryptsetup();
|
||||
(void) dlopen_libmount();
|
||||
(void) dlopen_libseccomp();
|
||||
|
||||
/* Let's now disable further dlopen()ing of libraries, since we are about to do namespace
|
||||
* shenanigans, and do not want to mix resources from host and namespace */
|
||||
block_dlopen();
|
||||
|
||||
@@ -212,6 +212,9 @@ executables += [
|
||||
'link_with' : executor_libs,
|
||||
'dependencies' : [
|
||||
libapparmor_cflags,
|
||||
libbpf_cflags,
|
||||
libcryptsetup_cflags,
|
||||
libmount_cflags,
|
||||
libpam_cflags,
|
||||
libseccomp_cflags,
|
||||
libselinux_cflags,
|
||||
|
||||
Reference in New Issue
Block a user