libselinux: turn into dlopen() dep

This commit is contained in:
Lennart Poettering
2025-09-26 11:12:04 +02:00
parent 26cde6f0ce
commit 83b6ef9b62
20 changed files with 248 additions and 97 deletions
+2 -2
View File
@@ -218,7 +218,7 @@ common_test_dependencies = [
libmount_cflags,
librt,
libseccomp_cflags,
libselinux,
libselinux_cflags,
threads,
]
@@ -432,7 +432,7 @@ executables += [
},
test_template + {
'sources' : files('test-selinux.c'),
'dependencies' : libselinux,
'dependencies' : libselinux_cflags,
},
test_template + {
'sources' : files('test-set-disable-mempool.c'),
+2
View File
@@ -22,6 +22,7 @@
#include "pkcs11-util.h"
#include "qrcode-util.h"
#include "seccomp-util.h"
#include "selinux-util.h"
#include "tests.h"
#include "tpm2-util.h"
@@ -60,6 +61,7 @@ static int run(int argc, char **argv) {
ASSERT_DLOPEN(dlopen_libblkid, HAVE_BLKID);
ASSERT_DLOPEN(dlopen_libseccomp, HAVE_SECCOMP);
ASSERT_DLOPEN(dlopen_libmount, true);
ASSERT_DLOPEN(dlopen_libselinux, HAVE_SELINUX);
return 0;
}