Why generic mount options like nodev, nosuid, noexec are not displayed on automount maps?
Issue
- CIS benchmarks or certain hardening tools recommends adding some specific mount options on all mount points/filesystems.
- Need to add several mount options like
nodev
ornosuid
ornoexec
on all or selective mount points. - There are certain entries in the mount table, having FS type specified as
autofs
. What are these? -
How to add options as desired for these filesystems?
$ grep autofs /proc/self/mounts | grep -v systemd /etc/auto.misc /test autofs rw,relatime,fd=6,pgrp=11037,timeout=10,minproto=5,maxproto=5,indirect,strictexpire,pipe_ino=47435 0 0 /etc/auto.test /test1/test2 autofs rw,relatime,fd=12,pgrp=11037,timeout=300,minproto=5,maxproto=5,direct,pipe_ino=47444 0 0 /etc/auto.cifs /cifs autofs rw,relatime,fd=18,pgrp=11037,timeout=60,minproto=5,maxproto=5,indirect,pipe_ino=47450 0 0
Environment
- Red Hat Enterprise Linux
- autofs
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.