by kazinator · 4y ago · 0 comments
It's really a ham-fisted band-aid to an poorly designed threading system. The whole thing is in incredibly bad taste.
If I'm writing traditional, clean, single-threaded Unix, I don't want anything to do with any at() stuff.
Since the at() functions exist, these environments can just not have a global filesystem namespace – there is no open(), only openat() under the descriptors you have. No escaping up from the sandbox!
Please don't assume people are stupid ;) These sandboxes have been carefully designed and extensively tested.