diff options
Diffstat (limited to 'testing/hosts/default')
-rw-r--r-- | testing/hosts/default/etc/profile.d/coredumps.sh | 5 | ||||
-rw-r--r-- | testing/hosts/default/etc/security/limits.conf | 2 | ||||
-rw-r--r-- | testing/hosts/default/etc/sysctl.conf | 4 |
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 |