←back to thread

Against /Tmp

(dotat.at)
140 points todsacerdoti | 4 comments | | HN request time: 0.287s | source
1. TeMPOraL ◴[] No.41914165[source]
In which people forget that computers have other purposes beyond being boxes for CTF competitions. Shared mutable global state isn't always bad.
replies(3): >>41914370 #>>41914775 #>>41916491 #
2. inetknght ◴[] No.41914370[source]
> Shared mutable global state isn't always bad.

I agree, but I think that shared mutable global state is a bad default. I think it'd be better to be opt-in (eg, you get a `/tmp/${USER}` and your user can `chmod o+rw` during setup if it needs to be globally mutable.

3. pjc50 ◴[] No.41914775[source]
If your machine is on the Internet in any way, you're taking part in the big ongoing global CTF.
4. samatman ◴[] No.41916491[source]
There are very few always in such matters, but I view this one as an 'except for rare circumstances'. Even when true, it should be modeled as "contained state where the container includes everyone".

The problem is that Unices use access control, rather than capabilities, so ensuring state is shared only by those who need it is quite a bit more difficult than just punting, and declaring that 'those who need it' is 'everyone'.

Nor has the design problem of a user-friendly capabilities architecture truly been solved, IHMO. Nonetheless, we shouldn't confuse convenience with correctness.