Bottlerocket
TMA-BOTTLEROCKET-4.1.2
Ensure permissions on journal files are configured
Trung bìnhCấp 1Tự độngbottlerocket
Mô tả
The journal is stored in /var/log/journal, and contains logged information from all services on the system. The audit lists files under /var/log/journal with group write/execute or any other permission and requires none. Run tmaegis on the host through the admin container root shell (sudo sheltie).
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
[ -d /var/log/journal ] || { echo '/var/log/journal not found'; exit 1; }
out=$(find /var/log/journal -type f -perm /g+wx,o+rwx 2>/dev/null) || exit 1
[ -z "$out" ] && echo compliant || { printf '%s\n' "$out" | head -n 20; echo 'journal files with group write/execute or other permissions'; }- Đầ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
Run the following commands to set permissions on all existing log files: # find /var/log/journal -type f -perm /g+wx,o+rwx -exec chmod g-wx,o-rwx "{}" +
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- bottlerocketlogging
- Tham chiếu
- CIS Bottlerocket Benchmark v1.0.0 - 4.1.2 Ensure permissions on journal files are configured
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 bottlerocket