aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hosts
diff options
context:
space:
mode:
authorReto Buerki <reet@codelabs.ch>2013-01-16 14:49:50 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-17 16:55:04 +0100
commit41943e9c1b99d447aa1637d80ceeb49378dc829e (patch)
treea5ee950045a29fd793b989631c3a6419834088af /testing/hosts
parente3a3013323f176f1c74b86b24a8341cd7d1d97a5 (diff)
downloadstrongswan-41943e9c1b99d447aa1637d80ceeb49378dc829e.tar.bz2
strongswan-41943e9c1b99d447aa1637d80ceeb49378dc829e.tar.xz
Make core dumps work
Core dumps are written to the /var/local/dumps directory.
Diffstat (limited to 'testing/hosts')
-rw-r--r--testing/hosts/default/etc/profile.d/coredumps.sh5
-rw-r--r--testing/hosts/default/etc/security/limits.conf2
-rw-r--r--testing/hosts/default/etc/sysctl.conf4
3 files changed, 9 insertions, 2 deletions
diff --git a/testing/hosts/default/etc/profile.d/coredumps.sh b/testing/hosts/default/etc/profile.d/coredumps.sh
new file mode 100644
index 000000000..ea44c0ef6
--- /dev/null
+++ b/testing/hosts/default/etc/profile.d/coredumps.sh
@@ -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
diff --git a/testing/hosts/default/etc/security/limits.conf b/testing/hosts/default/etc/security/limits.conf
index 5b8025d91..2658b3236 100644
--- a/testing/hosts/default/etc/security/limits.conf
+++ b/testing/hosts/default/etc/security/limits.conf
@@ -53,6 +53,6 @@
#ftp - chroot /ftp
#@student - maxlogins 4
-* hard core unlimited
+* soft core unlimited
# End of file
diff --git a/testing/hosts/default/etc/sysctl.conf b/testing/hosts/default/etc/sysctl.conf
index cefc73f5e..43010d52e 100644
--- a/testing/hosts/default/etc/sysctl.conf
+++ b/testing/hosts/default/etc/sysctl.conf
@@ -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