]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
crash-handler: also disable dlopen(), just in case 39824/head
authorLennart Poettering <lennart@poettering.net>
Thu, 20 Nov 2025 13:43:41 +0000 (14:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Nov 2025 10:56:47 +0000 (11:56 +0100)
src/core/crash-handler.c

index 124d4b886b449da2c1b39bc07bac19644f68616d..495e9efc9b5acb7b7855e0ad7becf0dbf3e9d0e6 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "constants.h"
 #include "crash-handler.h"
+#include "dlfcn-util.h"
 #include "exit-status.h"
 #include "format-util.h"
 #include "log.h"
@@ -70,6 +71,9 @@ _noreturn_ static void crash(int sig, siginfo_t *siginfo, void *context) {
          * memory allocation is not async-signal-safe anyway — see signal-safety(7) for details —, and thus
          * is not permissible in signal handlers.) */
 
+        block_dlopen(); /* paranoia: never end up doing dlopen() as side-effect from some call anymore from
+                         * here */
+
         if (getpid_cached() != 1)
                 /* Pass this on immediately, if this is not PID 1 */
                 propagate_signal(sig, siginfo);