Cheat Sheets

Security - No Core Dumps

Description

Checks if core dumps are disabled in /etc/security/limits.conf and /etc/security/limits.d/*

Check Script: security-no-core-dumps.sh

#!/bin/bash

output=$(grep "core[:space:][:space:]*[^0]" /etc/security/limits.conf /etc/security/limits.d/* 2>/dev/null) if [ "$output" != "" ]; then result_warning "Core dumps are not disabled!" fi
Comment on Disqus