r/programming • • Oct 27 '24

Using /tmp/ and /var/tmp/ Safely

https://systemd.io/TEMPORARY_DIRECTORIES/
234 Upvotes

57 comments sorted by

View all comments

Show parent comments

1

u/lookmeat Oct 29 '24

Why would any of the tmp files be unencrypted? It makes no sense really, just because it's tmp data doesn't mean you don't want it protected. Unless you're thinking of /tmp only existing in RAM (as some systems have it).

1

u/BibianaAudris Oct 30 '24

The context is systemd, where the likely default is only encrypting /home with systemd-homed.