]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Make core dumps work
authorReto Buerki <reet@codelabs.ch>
Wed, 16 Jan 2013 13:49:50 +0000 (14:49 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 17 Jan 2013 15:55:04 +0000 (16:55 +0100)
Core dumps are written to the /var/local/dumps directory.

testing/hosts/default/etc/profile.d/coredumps.sh [new file with mode: 0644]
testing/hosts/default/etc/security/limits.conf
testing/hosts/default/etc/sysctl.conf

diff --git a/testing/hosts/default/etc/profile.d/coredumps.sh b/testing/hosts/default/etc/profile.d/coredumps.sh
new file mode 100644 (file)
index 0000000..ea44c0e
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+ulimit -c unlimited >/dev/null 2>&1
+install -m 1777 -d /var/local/dumps >/dev/null 2>&1
+echo "/var/local/dumps/core.%e.%p" > /proc/sys/kernel/core_pattern
index 5b8025d91090d6694c629fd146b9aee1f4ce8b91..2658b3236362c6f75d8ff6b4e7015b5a015c1a95 100644 (file)
@@ -53,6 +53,6 @@
 #ftp             -       chroot          /ftp
 #@student        -       maxlogins       4
 
-* hard core unlimited
+* soft core unlimited
 
 # End of file
index cefc73f5e4c2df56c6dd9e8523df164b632d322a..43010d52e8d9742fb1ca1da6319f9be0dd9ce6fd 100644 (file)
@@ -57,4 +57,6 @@ net.ipv6.conf.all.forwarding=1
 #
 # Log Martian Packets
 #net.ipv4.conf.all.log_martians = 1
-#
+
+# Enable coredump for suid binaries
+fs.suid_dumpable = 1