Information
The jffs2 (journaling flash filesystem 2) filesystem type is a log-structured filesystem used in flash memory devices.
Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.
Solution
Unload and disable the jffs2 kernel module.
- Run the following commands to unload the jffs2 kernel module:
# modprobe -r jffs2 2>/dev/null
# rmmod jffs2 2>/dev/null <xhtml:ol start="2"> - Perform the following to disable the jffs2 kernel module:
Create a file ending inconf with install jffs2 /bin/false in the /etc/modprobe.d/ directory.
Example:
# printf '%s\n' "" "install jffs2 /bin/false" >> /etc/modprobe.d/60-jffs2.conf
Create a file ending inconf with blacklist jffs2 in the /etc/modprobe.d/ directory.
Example:
# printf '%s\n' "" "blacklist jffs2" >> /etc/modprobe.d/60-jffs2.conf