I'm trying to harden my RHEL Linux server 7 according to the CIS guidelines, so I want to unload the cramfs.

I typed the following command: modprobe -n -v cramfs

and I got the following answer:

insmod /lib/modules/3.10.0-693.el7.x86_64/kernel/fs/cramfs/cramfs.ko.xz

instead of the one mentioned in the CIS: install /bin/true . I note that there is no such file in my system.

Question: what does the output mean ? In this context, how can I unmount the cramfs?


The command you are running, modprobe -n -v cramfs does nothing except output what it would do as you passed -n which is the short option for --dry-run. The output insmod /lib/modules/3.10.0-693.el7.x86_64/kernel/fs/cramfs/cramfs.ko.xz would load the cramfs module at that location.

You probably wanted to do modprobe -v -r cramfs as the -r flag is the short option for --remove.

This does not prevent the module from being loaded again on reboot, or being loaded again manually. To prevent that, you would need to blacklist the module which is a bit more involved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.