I've been messing around with /dev, now that we have the plan 9 namespace, and wow it's nice to have it there.
Now a question. We can set some variables and see them too; hostowner, user, and so on. hostowner is traditionally set at boot time and is the name of the owner of the host. The name is set after a verification of the hostowner's identity with an auth server. It uses a basic challenge/response protocol and back in the day you could add one time pad systems like cryptocards (nowadays it would be 2-factor with something like google authenticator). Plan 9 has no concept of root, which is a major plus, but you do need to have some person to own the host. The name of the hostowner is stored in a variable, eve, and is compared to the name of the user when trying to do certain things. You'll see the use of eve in some places. To sum up, we actually almost have a better-than-unix security model ready to turn on, once we get a few more bits in place. No hurry, just wanted to mention it. ron On Tue, Apr 12, 2016 at 8:36 PM ron minnich <[email protected]> wrote: > The following changes since commit > 392acd0dc1210a0cc74a62e2ab3493686235c8f7: > > Return 0 for a timed-out select() (2016-04-04 17:54:50 -0400) > > are available in the git repository at: > > [email protected]:rminnich/akaros killdevfs > > for you to fetch changes up to 3b8e534a3b672fd741efb2a60fb164619cb3b717: > > Remove devfs, devfs.c; use new name space for stdin/stdout/stderr and > null (2016-04-12 20:30:48 -0700) > > ---------------------------------------------------------------- > Ronald G. Minnich (1): > Remove devfs, devfs.c; use new name space for stdin/stdout/stderr > and null > > kern/drivers/dev/cons.c | 43 ++++++++++++ > kern/include/ns.h | 4 +- > kern/src/Kbuild | 2 +- > kern/src/blockdev.c | 4 +- > kern/src/devfs.c | 182 > ------------------------------------------------ > kern/src/init.c | 1 - > kern/src/ns/dev.c | 2 + > kern/src/ns/sysfile.c | 24 +++---- > kern/src/process.c | 7 +- > kern/src/syscall.c | 2 +- > 10 files changed, 67 insertions(+), 204 deletions(-) > delete mode 100644 kern/src/devfs.c > > https://github.com/rminnich/akaros/compare/rminnich:brhonet...killdevfs > -- You received this message because you are subscribed to the Google Groups "Akaros" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
