Linux distributions
TMA-ALINUX3-6.2.2.2
Ensure rsyslog service is enabled and active
中レベル 1自動linux
説明
Once the rsyslog package is installed, ensure that the service is enabled.
チェック方法
監査方法: シェルコマンド
shell
alt0() { command -v systemctl >/dev/null 2>&1 || { echo "step1: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-enabled rsyslog' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- enabled || { echo step1: missing enabled; return 1; }; command -v systemctl >/dev/null 2>&1 || { echo "step2: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-active rsyslog.service' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- active || { echo step2: missing active; return 1; }; }; if alt0; then echo compliant; fi- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
- IF - rsyslog is being used for logging on the system: Run the following commands to unmask, enable, and start rsyslog.service: # systemctl unmask rsyslog.service # systemctl enable rsyslog.service # systemctl start rsyslog.service
プロパティ
- オペレーティングシステム
- alinux-3
- タグ
- cis-convertedlinux
- 参照
- CIS Alibaba Cloud Linux 3 Benchmark v2.0.0 - 6.2.2.2
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target linux