News for hackers. Stuff that matters.
Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by miga on Wednesday June 21, 2023 @05:55AM (#36416532)
I disagree with the author:

1. We could gradually port Linux `ioctl` to Plan9 namespaces, if there was understanding they greatly simplify Docker.

2. Docker and virtualization are one of most important applications of Linux, but there is still not even a proof-of-concept implementation of such on Plan9.

3. We don't need a complete rebuilding of Linux to make it more like Plan9. Both Windows and Mac OS X is an example of system that underwent radical redesigns of several subsystems.

4. All features of Plan9 could be brought to Linux by adding modules for alternative system interfaces, and deprecating old ones or blocking them with security capabilities.

Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by pomalat on Wednesday June 21, 2023 @07:14AM (#36417020)
wrt #4: No, the big thing about Plan 9 is that each process has its own view of the filesystem, and can modify it without any privileges. This would break the unix security model because unix has setuid.

Quote from https://utcc.utoronto.ca/~cks/space/blog/unix/WhyNoUserNames...:

> Imagine that Unix had this feature and still had setuid, and you would like root privileges. No problem; make a custom namespace for /etc that has a version of /etc/shadow, /etc/group, and /etc/sudoers that have known passwords and list you as authorized. Now run sudo. Done.

Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by ori_b on Wednesday June 21, 2023 @08:35AM (#36417673)
The feature of plan 9 that makes it all hang together is that all features interact through a single, network transparent, universal layer.

Fixing this in Linux means removing everything that doesn't fit in this interposable, network transparent world.

That's most of Linux.

Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by hdidhdish on Wednesday June 21, 2023 @01:03PM (#36421227)
on plan9 you can theoretically tarball a running process file, move it over the network, ubtar it and have it continue to run as it was before.

that a little above your docker usecase already...

Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by kramerger on Wednesday June 21, 2023 @03:28PM (#36423179)
Just a nitpick: "docker" is not a technology, its a product. What you (and the author) mean is "kernel containers".

Regarding the rest: I was an early Plan9 user and still use some of their tools. They had some good ideas and some bad ones. I don't want people to rewrite linux to make it a plan9 clone. The good parts have already been added to Linux anyway