4.5.3 Verify Permissions on /etc/hosts.allow

Information

The /etc/hosts.allow file contains networking information that is used by many applications and therefore must be readable for these applications to operate.

Rationale:

It is critical to ensure that the /etc/hosts.allow file is protected from unauthorized write access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.

Solution

Run the following command to remove excess permissions from the /etc/hosts.allow file:

# /bin/chmod u-x,go-wx /etc/hosts.allow

Default Value:

OS Default: Installed

See Also

https://workbench.cisecurity.org/files/3096

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7(12), CSCv6|3.1, CSCv7|9.4

Plugin: Unix

Control ID: 8ab8880d2bcea7202aa2ad9d2c344ac2f19dd30fb7cfcfa49d3fbc32fb2b5349