Skip to contentSkip to conversation

ts-host-install: Arrange for ssh logins to have no corefile size limit

PATCH In review Ian Campbell 2 participants 2 messages Mar 25, 2015 – Apr 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ts-host-install: Arrange for ssh logins to have no corefile size limit

Collect the output of "cat /proc/self/limits" so we get some clue if this isn't working for some reason.

---
 ts-host-install | 7 +++++++
 ts-logs-capture | 1 +
 2 files changed, 8 insertions(+)
ts-host-install +7 -0
index 2e3e84b..ea5511e 100755
@@ -146,6 +146,13 @@ END
 		  # %p==pid,%e==executable name,%t==timestamp
 		  "/var/core/%t.%p.%e.core") });
     target_cmd_root($ho, "sysctl --load /etc/sysctl.conf");
+    my $coredumps_conf = <<'END';
+#<domain>      <type>  <item>       <value>
+*               soft    core         -1
+root            soft    core         -1
+END
+    target_putfilecontents_root_stash($ho,10,$coredumps_conf,
+				'/etc/security/limits.d/coredumps.conf');
 
     target_cmd_root($ho, "update-rc.d osstest-confirm-booted start 99 2 .");
 
ts-logs-capture +1 -0
index 45b0a38..4ad55b9 100755
@@ -168,6 +168,7 @@ sub fetch_logs_host_guests () {
          'lspci -tv',
          'cat /proc/partitions',
          'virsh capabilities',
+         'cat /proc/self/limits',
          ) {
             try_cmd_output_save($cmd);
         }
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] ts-host-install: Arrange for ssh logins to have no corefile size limit"):

Quoted 2 lines

Collect the output of "cat /proc/self/limits" so we get some clue if this isn't working for some reason.