Skip to content
Snippets Groups Projects
Commit 396b2029 authored by Bob Mottram's avatar Bob Mottram
Browse files

Disable core dumps

parent a76a4d22
No related branches found
No related tags found
No related merge requests found
......@@ -458,6 +458,14 @@ function set_command_file_permissions {
chown root:root /etc/sudoers
}
function disable_core_dumps {
if ! grep '* hard core 0' /etc/security/limits.conf; then
echo '* hard core 0' >> /etc/security/limits.conf
else
sed -i 's|hard core.*|hard core 0|g' /etc/security/limits.conf
fi
}
function setup_firewall {
function_check create_completion_file
create_completion_file
......@@ -482,6 +490,9 @@ function setup_utils {
read_config_param "PROJECT_REPO"
write_config_param "PROJECT_REPO" "$PROJECT_REPO"
function_check disable_core_dumps
disable_core_dumps
function_check remove_serial_logins
remove_serial_logins
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment