Closed
Description
Currently, Rust programs under Unix will use $TMPDIR
as root temporary directory. This normally means /tmp/
.
This is not optimally secure with most modern Linux distros. $TMPDIR
is not guaranteed to be private.
Instead, I propose using the value of $XDG_RUNTIME_DIR
first, since that is most likely set.
Meta
rustc --version --verbose
:
rustc 1.16.0-nightly (1a2ed98d3 2017-01-13)
binary: rustc
commit-hash: 1a2ed98d344b6cbddc57db8841b42f935877e08d
commit-date: 2017-01-13
host: x86_64-unknown-linux-gnu
release: 1.16.0-nightly
LLVM version: 3.9