hardening /tmp

Odhiambo Washington odhiambo at gmail.com
Wed Feb 8 15:41:33 UTC 2017

On 8 February 2017 at 18:22, James B. Byrne via freebsd-questions <
freebsd-questions at freebsd.org> wrote:

> How do most people handle hardening /tmp and /var/tmp on FreeBSD?  I
> can get rid of /tmp from the file system and then simply mount it as a
> tmpfs in /etc/fstab.
> tmpfs         /tmp        tmpfs   rw,nosuid,noexec,mode=01777 0     0
> However, /var/tmp is supposed to survive across reboots so how is this
> handled?

How about just getting rid of /tmp and creating a symlink to /var/tmp? I am
trying to understand the dangers around that..

Best regards,
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft."

More information about the freebsd-questions mailing list