From 6fdcc2a7117664cc5a27e4656edd091457012768 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:23:27 +0100 Subject: [PATCH] disable core dumps in limits.conf (though not sure what changed to make cores appear recently) [release 1.2.1-4mamba;Fri Mar 25 2016] --- pam-1.2.1-limits-disable-cores.patch | 12 ++++++++++++ pam.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 pam-1.2.1-limits-disable-cores.patch diff --git a/pam-1.2.1-limits-disable-cores.patch b/pam-1.2.1-limits-disable-cores.patch new file mode 100644 index 0000000..2bbd346 --- /dev/null +++ b/pam-1.2.1-limits-disable-cores.patch @@ -0,0 +1,12 @@ +diff -Nru Linux-PAM-1.2.1.orig/modules/pam_limits/limits.conf Linux-PAM-1.2.1/modules/pam_limits/limits.conf +--- Linux-PAM-1.2.1.orig/modules/pam_limits/limits.conf 2016-03-25 14:06:10.788533468 +0100 ++++ Linux-PAM-1.2.1/modules/pam_limits/limits.conf 2016-03-25 14:12:08.910369039 +0100 +@@ -39,7 +39,7 @@ + # + # + +-#* soft core 0 ++* hard core 0 + #* hard rss 10000 + #@student hard nproc 20 + #@faculty soft nproc 20 diff --git a/pam.spec b/pam.spec index 3f917a7..62819fa 100644 --- a/pam.spec +++ b/pam.spec @@ -10,7 +10,7 @@ Name: pam Version: 1.2.1 -Release: 3mamba +Release: 4mamba Summary: Utilities for monitoring your system and processes on your system Group: System/Libraries Vendor: openmamba @@ -33,6 +33,7 @@ Patch0: %{name}-0.77-pam_unix2.conf Patch1: %{name}-0.99.7.1-cracklib_module.patch Patch2: %{name}-1.1.3-limits.patch Patch3: pam-1.1.6-glibc-2.16.patch +Patch4: pam-1.2.1-limits-disable-cores.patch License: GPL, BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -98,6 +99,7 @@ This package contains the documentation files in html, pdf and postscript format %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build %configure \ @@ -236,6 +238,9 @@ exit 0 #%endif %changelog +* Fri Mar 25 2016 Silvan Calarco 1.2.1-4mamba +- disable core dumps in limits.conf (though not sure what changed to make cores appear recently) + * Mon Oct 12 2015 Silvan Calarco 1.2.1-3mamba - add --follow-symlinks to %post sed or it will destroy password-auth symlink