News for hackers. Stuff that matters.
Re:Save your disk, write files directly into RAM with /dev/shm by hackyhacky on Thursday June 26, 2025 @08:15PM (#44392718)
It also says:

> Usually, it is a better idea to use memory mapped files in /run/ (for system programs) or $XDG_RUNTIME_DIR (for user programs) instead of POSIX shared memory segments, since these directories are not world-writable and hence not vulnerable to security-sensitive name clashes.

$XDG_RUNTIME_DIR usually points to /run/user/${uid}, so you're guaranteed that other users won't write there, and possibly won't even be able to read there.

There are no comments on this comment yet.