TMAegisBeta
Thêm quy tắc cho apache

Apache HTTP Server

TMA-APACHE-3.8

Ensure the Lock File Is Secured

Trung bìnhCấp 1Xem xét thủ côngapache

Mô tả

The Mutex directive sets the locking mechanism used to serialize access to resources. It may be used to specify that a lock file is to be used as a mutex mechanism and may provide the path to the lock file to be used with the fcntl(2) or flock(2) system calls. Most Linux systems will default to using semaphores instead, so the directive may not apply. Manual review: the benchmark gives no reliable automated check for this control.

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --include-manual.

Verify the configuration does NOT include a Mutex directive with the mechanism of fcntl, flock or file. If one of the file locking mechanisms is configured, then find the directory in which the lock file would be created. The default value is the ServerRoot/logs directory. 1. Verify that the lock file directory is not a directory within the Apache DocumentRoot 2. Verify that the ownership and group of the directory is root:root (or the user under which Apache initially starts up if not root). 3.

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

Find the directory path in which the lock file would be created. The default value is the ServerRoot/logs directory. 1. Modify the directory if the path is a directory within the Apache DocumentRoot 2. Change the ownership and group to be root:root, if not already. 3. Change the permissions so that the directory is only writable by root, or the user under which Apache initially starts up (default is root), 4. Check that the lock file directory is on a locally mounted hard drive rather than an NFS mounted file system.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
apacheaccounts
Tham chiếu
CIS Apache HTTP Server 2.4 Benchmark v2.4.0 - 3.8 Ensure the Lock File Is Secured