hey #duckduckFedi, I'm told that apparently some distros don't mount /tmp/ as a tmpfs
would anyone happen to know which distros might do this?
@lily freebsd isn't too relevant in this context, bc it's about running mc, and I'm not too sure how well mc will run on freebsd lol
@solonovamax @lily it runs, and even if it doesn't I'll make it run anyway
FreeBSD is fun
@tranquillity @solonovamax @lily FreeBSD is amazing and pretty, a friend of mine is porting / has ported launchd to it
@solonovamax This struck me as an unusual observation given how malleable Linux-like operating systems are. Anything that's there by default is more a suggestion than anything.
Clearing /tmp still seems like a moral imperative to me, which suggests that I use traditional filesystems. Or... Traditional-ish anyway. Mostly ZFS nowadays. But I'm not sure what the default is on anything I use...
What's the context of the question, out of curiosity?
@mason context is this: https://tech.lgbt/@solonovamax/116383968784893219
I want to know bc as part of a blog post I'm working on I mention that linux uses a tmpfs for /tmp, so if there's any large distros that don't do this, then I want to call it out
@solonovamax Oh, that's interesting. That is an interesting finding. I'd say "well, folks should make sure their memory-mapped file is on something suitable" except that I can't imagine a lot of people would be aware of that quirk.
I'm curious, though - why doesn't filesystem caching make this utterly invisible? Or are you talking about files written with O_DIRECT|O_SYNC or something?
Man, there's a whole world of picky little details where I've just no clue here! Heh.
@lily yeah, but like nobody does it, sooo
this issue is also specifically to do with https://www.evanjones.ca/jvm-mmap-pause.html, and idk if that happens on freebsd, it very well might not happen bc they do smth different
@solonovamax I thought Debian was one of the last ones to do this, but it does now.
Clearing /tmp still seems like a moral imperative to me, which suggests that I use traditional filesystems. Or... Traditional-ish anyway. Mostly ZFS nowadays. But I'm not sure what the default is on anything I use...
Am I missing something? tmpfs keeps its data in RAM, right? So clearing it is as simple as unmounting or rebooting. (Or if you really really want to get technical, a powerdown I guess.) Conversely, zfs and etc would require manual overwriting to truly clear or really you would ideally want to put it on an encrypted partition.
Or am I completely misunderstanding something?
@nazokiyoubinbou @solonovamax No, that's it. I'm just poking fun at myself for not knowing what the defaults are for the systems I use.
@mason @solonovamax Ok, I just knew a moment of panic wondering if tmpfs for /tmp was bad somehow due to some exploits or bad implementations or something.
Would be a real pita for me to try to rig something up on an encrypted partition right now.
@nazokiyoubinbou @solonovamax If you're worried about security, make sure your swap is encrypted, or that your tmpfs mounts can't swap out. (Look at the noswap setting.)
@mason @solonovamax Yeah, my swap is on an encrypted partition. Anyway, I was just double checking. Thanks! (I may still do noswap though.)