TMAegisBêta
Plus de règles pour linux

Linux distributions

TMA-SLES11-4.1.1.3

Ensure audit logs are not automatically deleted

FaibleNiveau 2Automatiséelinux

Description

The max_log_file_action setting determines how to handle the audit log file reaching the max file size. A value of keep_logs will rotate the logs but never delete old logs.

Méthode de vérification

Méthode d'audit: Commande shell

shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; o=$(bash -c 'grep max_log_file_action /etc/audit/auditd.conf' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- 'max_log_file_action = keep_logs' || { echo step1: missing 'max_log_file_action = keep_logs'; return 1; }; }; if alt0; then echo compliant; fi
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

Set the following parameter in /etc/audit/auditd.conf: max_log_file_action = keep_logs

Propriétés

Systèmes d'exploitation
sles-11
Étiquettes
cis-convertedlinux
Référence
CIS SUSE Linux Enterprise 11 Benchmark v2.1.1 - 4.1.1.3

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target linux --level 2