4 ms·
> user id is encoded into the file system This is kind of unavoidable, but you do have 32 bits to play with. Windows did it slightly better with the SID: https
by pjc50 3y ago
> user id is encoded into the file system
This is kind of unavoidable, but you do have 32 bits to play with. Windows did it slightly better with the SID: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers https://learn.microsoft.com/en-us/windows-server/identity/ad...
> which makes it very difficult to contain users to things they should control
It's not the file system that's the problem here, it's that "everything is a file" is not true for a whole bunch of important stuff that you might want to apply access control to on a UNIX system. Such as the right to initiate TCP connections. This sort of thing is why containers are so popular.
NIS and LDAP do let you have a large number of users. Heck, we managed a few thousand users in /etc/password back when I was running https://www.srcf.net/ https://www.srcf.net/ .. in 2000.
- TFortunato 3y ago> it's not the file system that's the problem here, it's that "everything is a file" is not true for a whole bunch of important stuff that you might want to apply access control to on a UNIX system I wonder if there has ever been an attempt to really lean into, and push the limits of sticking with the "everything is a file" philosophy in this realm. I.e. how far could you get with having special files for fine grained permissions like "right to initiate a TCP connection", and making access control management be, essentially, managing which groups a user belonged to?
- tenebrisalietum 3y agoI think Hurd and Plan 9 take the EIAF further.
- generalizations 3y agoI think that was Plan 9.
- jampekka 3y agoPlan 9 probably took this the furthest. Sad it didn't take off. https://en.m.wikipedia.org/wiki/Plan_9_from_Bell_Labs https://en.m.wikipedia.org/wiki/Plan_9_from_Bell_Labs
- zare_st 3y agoPlan9 tried to "remedy this". But in reality a file is not a good abstraction for an internet socket. The ACLs would in essence spell out firewall rules. Because the bigger question is where can it connect to than "user" that is connecting. That's why this is done on the level of kernel networking, where kernel knows what process is trying to open a socket and can firewall it.