the idea of a posix user as a permission boundary is inherently flawed. it made ...
sodiboo :pride_heart: @sodiboo@gaysex.cloud
the idea of a posix user as a permission boundary is inherently flawed. it made sense in the infancy of computing when you knew all the software you ran (maybe even wrote it yourself), and the primary threat was university students messing with each others' shit on the expensive mainframe. but with modern computers being largely personal, it basically means there are no security boundaries whatsoever.
i don't think that is a controversial statement. clearly people agree. see all sandboxing efforts ever, dynamic users for systemd services, android applications being basically entirely isolated things communicating via messages, that concept being borrowed to Flatpak and portals, or when we give up and run everything inside a virtual machine.
and yet, i still have to think about POSIX users when i use my computer. this concept is ossified into every operating system because that's how every filesystem ever handles permissions basically. even if everything is isolated into a sandbox with its own restricted access, i still have to think about users! if i'm doing that on Linux, i must think about mapping a range of user IDs and that's not always possible and then certain access boundaries are just impossible to construct because we ran out of users . what the fuck.
it's all just workarounds and they all suck because they're leaky abstractions over the same horrible concept. and we only have those abstractions because all our disks rely on that concept a million times over, once per file they store. so it's really difficult to NOT have this concept be prevalent in a desktop operating system.
i perceive that the filesystem being the reason this concept didn't die out, is because "everything is a file", so it's the least friction way of providing a semblance of access control to anything, a socket, shared memory, physical devices, whatever. and because file paths are ubiquitous in IPC (see: the Command Line. your shell doesn't sandbox shit. it gives every command full authority as your user, and just names the resources being passed as arguments. everything you invoke could, in theory, just make your shellrc have a malicious alias for sudo). the way this should be done is by passing capabilities instead of paths. capabilities are unforgeable, and must be explicitly shared, but by default dropped, as opposed to users which are implicitly inherited and must be explicitly sandboxed.
but all capability-based solutions I'm familiar with (especially anything related to Linux) are just bodges over the user-based filesystem. they feel horrible to use. it's a pain to set up.
is there an operating system where it's capabilities all the way down? where users are just Not A Concept? (obviously, the semantic concept of a "user" in the sense of login credentials is useful. but i mean as the fundamental method of access control)