0
I have the following line in my /etc/fstab on three of my slackware servers:
tmpfs /dev/shm tmpfs rw,nodev,nosuid,noexec 0 0 All three show the mount options correctly in /proc/mounts:
tmpfs /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0 Two of them show the correct options with the mount command:
tmpfs on /dev/shm type tmpfs (rw,nodev,nosuid,noexec) The third one shows different options with the mount command:
tmpfs on /dev/shm type tmpfs (rw) The only difference is the third one is at runlevel 4 while the other two are at runlevel 3. Any ideas on why the third one is showing two different mount options and which one is the correct one?
/etc/mtaba regular file (that would be updated by themountcommand) or a symlink to/proc/mounts?grep shm /proc/*/mountinfo | sort -ut: -k2,2print on that machine? Btw, you should leave/dev/shmalone. If you mount itnoexec, you breakshm_open(3)for zero benefit./proc/1/mountinfo:22 17 0:18 / /dev/shm rw,nosuid,nodev,noexec,relatime - tmpfs tmpfs rw. The noexec was a finding from Tenable's CIS Linux Server Policy.