1.1.1.2 Ensure freevxfs kernel module is not available

Information

The freevxfs filesystem type is a free version of the Veritas type filesystem. This is the primary filesystem type for HP-UX operating systems.

Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.

Solution

Run the following to unload and disable the freevxfs kernel module. This can also be done by running the script included below.

Run the following commands to unload the freevxfs kernel module:

# modprobe -r freevxfs 2>/dev/null
# rmmod freevxfs 2>/dev/null

Perform the following to disable the freevxfs kernel module:

Create a file ending inconf with install freevxfs /bin/false in the /etc/modprobe.d/ directory

Example:

# printf '\n%s\n' "install freevxfs /bin/false" >> freevxfs.conf

Create a file ending inconf with blacklist freevxfs in the /etc/modprobe.d/ directory

Example:

# printf '\n%s\n' "blacklist freevxfs" >> freevxfs.conf

See Also

https://workbench.cisecurity.org/benchmarks/21369

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, 800-53|CM-7, CSCv7|9.2

Plugin: Unix

Control ID: 46d52d7573806366be36de4eaff03da27725ac92584ea02bcac7a843995ec07c