Linux distributions
TMA-RHEL10-6.2.3.2
Ensure rsyslog service is enabled and active
Trung bìnhCấp 1Tự độnglinux
Mô tả
Once the rsyslog package is installed, ensure that the service is enabled.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
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- Đầu ra mong đợi
compliant
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
- 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
Thuộc tính
- Hệ điều hành
- rhel-10
- Thẻ
- cis-convertedlinux
- Tham chiếu
- CIS Red Hat Enterprise Linux 10 Benchmark v1.0.1 - 6.2.3.2
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target linux