From c3a363ab3c417b4d4a3ddbb6196b080fc1239a4e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 26 Jul 2016 13:18:44 +0200 Subject: [PATCH] Set TMOUT --- modules/debian-org/files/etc.profile.d/timeout.sh | 2 ++ modules/debian-org/manifests/init.pp | 5 +++++ 2 files changed, 7 insertions(+) create mode 100755 modules/debian-org/files/etc.profile.d/timeout.sh diff --git a/modules/debian-org/files/etc.profile.d/timeout.sh b/modules/debian-org/files/etc.profile.d/timeout.sh new file mode 100755 index 000000000..617579eaf --- /dev/null +++ b/modules/debian-org/files/etc.profile.d/timeout.sh @@ -0,0 +1,2 @@ +TMOUT=129600 # a day and a half (36 hrs) +export TMOUT diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index 3cac13b3a..49841e130 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -311,6 +311,11 @@ class debian-org { source => 'puppet:///modules/debian-org/nsswitch.conf', } + file { '/etc/profile.d/timeout.sh': + mode => '0555', + source => 'puppet:///modules/debian-org/etc.profile.d/timeout.sh', + } + # set mmap_min_addr to 4096 to mitigate # Linux NULL-pointer dereference exploits site::sysctl { 'mmap_min_addr': -- 2.20.1