diff options
Diffstat (limited to 'security/sssd2/files/patch-src__util__server.c')
| -rw-r--r-- | security/sssd2/files/patch-src__util__server.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/security/sssd2/files/patch-src__util__server.c b/security/sssd2/files/patch-src__util__server.c deleted file mode 100644 index b8901158149c..000000000000 --- a/security/sssd2/files/patch-src__util__server.c +++ /dev/null @@ -1,53 +0,0 @@ ---- src/util/server.c.orig 2024-01-12 12:05:40 UTC -+++ src/util/server.c -@@ -30,17 +30,12 @@ - #include <fcntl.h> - #include <unistd.h> - #include <signal.h> --#include <sys/prctl.h> - #include <ldb.h> - #include "util/util.h" - #include "confdb/confdb.h" - #include "util/sss_chain_id.h" - #include "util/sss_chain_id_tevent.h" - --#ifdef HAVE_PRCTL --#include <sys/prctl.h> --#endif -- - static TALLOC_CTX *autofree_ctx; - - static void server_atexit(void) -@@ -317,10 +312,13 @@ static void setup_signals(void) - BlockSignals(false, SIGTERM); - - #ifndef HAVE_PRCTL -- /* If prctl is not defined on the system, try to handle -- * some common termination signals gracefully */ -+ /* If prctl is not defined on the system, try to handle -+ * some common termination signals gracefully */ -+ (void) sig_segv_abrt; /* unused */ -+ /* - CatchSignal(SIGSEGV, sig_segv_abrt); - CatchSignal(SIGABRT, sig_segv_abrt); -+ */ - #endif - - } -@@ -749,6 +747,8 @@ int server_setup(const char *name, bool is_responder, - DEBUG(SSSDBG_FATAL_FAILURE, "Failed to determine "CONFDB_MONITOR_DUMPABLE"\n"); - return ret; - } -+ -+#ifdef HAVE_PRCTL - ret = prctl(PR_SET_DUMPABLE, dumpable ? 1 : 0); - if (ret != 0) { - DEBUG(SSSDBG_CRIT_FAILURE, "Failed to set PR_SET_DUMPABLE\n"); -@@ -756,6 +756,7 @@ int server_setup(const char *name, bool is_responder, - } else if (!dumpable) { - DEBUG(SSSDBG_IMPORTANT_INFO, "Core dumps are disabled!\n"); - } -+#endif - - sss_chain_id_setup(ctx->event_ctx); - |
