dlopen-note: downgrade all dlopen notes in libsystemd.so and libsystemd-shared.so

Since all executables now manage their required dlopen notes directly
within their own source code with explicit priority levels, it is no
longer necessary to declare high-priority dlopen notes in the shared
libraries themselves.
This commit is contained in:
Yu Watanabe
2026-07-11 01:20:47 +09:00
parent 661ab8b6fd
commit 796580518e
11 changed files with 13 additions and 13 deletions

View File

@@ -304,7 +304,7 @@ int dlopen_xz(int log_level) {
#if HAVE_XZ
static void *lzma_dl = NULL;
LIBLZMA_NOTE(COMPRESSION_PRIORITY_XZ);
LIBLZMA_NOTE(suggested);
return dlopen_many_sym_or_warn(
&lzma_dl,
@@ -325,7 +325,7 @@ int dlopen_lz4(int log_level) {
#if HAVE_LZ4
static void *lz4_dl = NULL;
LIBLZ4_NOTE(COMPRESSION_PRIORITY_LZ4);
LIBLZ4_NOTE(suggested);
return dlopen_many_sym_or_warn(
&lz4_dl,
@@ -355,7 +355,7 @@ int dlopen_zstd(int log_level) {
#if HAVE_ZSTD
static void *zstd_dl = NULL;
LIBZSTD_NOTE(COMPRESSION_PRIORITY_ZSTD);
LIBZSTD_NOTE(suggested);
return dlopen_many_sym_or_warn(
&zstd_dl,

View File

@@ -47,7 +47,7 @@ int dlopen_libacl(int log_level) {
#if HAVE_ACL
static void *libacl_dl = NULL;
LIBACL_NOTE(recommended);
LIBACL_NOTE(suggested);
return dlopen_many_sym_or_warn(
&libacl_dl,

View File

@@ -46,7 +46,7 @@ int dlopen_libapparmor(int log_level) {
#if HAVE_APPARMOR
static void *libapparmor_dl = NULL;
LIBAPPARMOR_NOTE(recommended);
LIBAPPARMOR_NOTE(suggested);
return dlopen_many_sym_or_warn(
&libapparmor_dl,

View File

@@ -98,7 +98,7 @@ int dlopen_libblkid(int log_level) {
#if HAVE_BLKID
static void *libblkid_dl = NULL;
LIBBLKID_NOTE(recommended);
LIBBLKID_NOTE(suggested);
return dlopen_many_sym_or_warn(
&libblkid_dl,

View File

@@ -23,7 +23,7 @@ int dlopen_libaudit(int log_level) {
#if HAVE_AUDIT
static void *libaudit_dl = NULL;
LIBAUDIT_NOTE(recommended);
LIBAUDIT_NOTE(suggested);
return dlopen_many_sym_or_warn(
&libaudit_dl,

View File

@@ -142,7 +142,7 @@ int dlopen_libcrypt(int log_level) {
if (cached < 0)
return cached; /* Already tried, and failed. */
LIBCRYPT_NOTE(recommended);
LIBCRYPT_NOTE(suggested);
/* Several distributions like Debian/Ubuntu and OpenSUSE provide libxcrypt as libcrypt.so.1
* (libcrypt.so.1.1 on some architectures), while others like Fedora/CentOS and Arch provide it as

View File

@@ -118,7 +118,7 @@ int dlopen_libmount(int log_level) {
#if HAVE_LIBMOUNT
static void *libmount_dl = NULL;
LIBMOUNT_NOTE(recommended);
LIBMOUNT_NOTE(suggested);
return dlopen_many_sym_or_warn(
&libmount_dl,

View File

@@ -171,7 +171,7 @@ int dlopen_libkmod(int log_level) {
#if HAVE_KMOD
static void *libkmod_dl = NULL;
LIBKMOD_NOTE(recommended);
LIBKMOD_NOTE(suggested);
return dlopen_many_sym_or_warn(
&libkmod_dl,

View File

@@ -382,7 +382,7 @@ int dlopen_libpam(int log_level) {
#if HAVE_PAM
static void *libpam_dl = NULL;
LIBPAM_NOTE(recommended);
LIBPAM_NOTE(suggested);
return dlopen_many_sym_or_warn(
&libpam_dl,

View File

@@ -2601,7 +2601,7 @@ int dlopen_libseccomp(int log_level) {
#if HAVE_SECCOMP
static void *libseccomp_dl = NULL;
LIBSECCOMP_NOTE(recommended);
LIBSECCOMP_NOTE(suggested);
return dlopen_many_sym_or_warn(
&libseccomp_dl,

View File

@@ -92,7 +92,7 @@ int dlopen_libselinux(int log_level) {
#if HAVE_SELINUX
static void *libselinux_dl = NULL;
LIBSELINUX_NOTE(recommended);
LIBSELINUX_NOTE(suggested);
return dlopen_many_sym_or_warn(
&libselinux_dl,