News for hackers. Stuff that matters.
Re:Robigalia: seL4 and Rust by Scramblejams on Wednesday January 06, 2016 @05:24PM (#10854318)
Create a secure POSIX-compatible userland on top of seL4.

This goal fills me with nerd lust. Getting ourselves a secure foundation to build on doesn't solve all our problems (not by a long shot), but such a drastic reduction in attack surface would be an incredible achievement.

Re:Robigalia: seL4 and Rust by gioele on Thursday January 07, 2016 @02:02AM (#10856458)
>> Create a secure POSIX-compatible userland on top of seL4. > > This goal fills me with nerd lust.

I remember a L4 talk in which the speaker showed how more than 95% of the code of new OSes where devoted to being POSIX compatible and yet they 1) lacked a lot of features 2) missed many edge cases 3) had to modify their beautiful kernel design to accommodate POSIX use cases.

I think the only way forward is to do like Plan9 did. Just forget about POSIX and implement your own set of primitives (but first study what has been done in the last 40 years!). POSIX compatibility can come later with 80/20 library that maps POSIX calls and behaviour to the new primitives.

And maybe POSIX is not needed at all. If your OS is interesting enough people will add #ifdef'd code for your platform, just like many UNIX-y applications do now for Android, OS X or Windows.

Re:Robigalia: seL4 and Rust by comex on Thursday January 07, 2016 @03:18AM (#10856680)
FWIW, OS X is UNIX 03 certified: http://www.opengroup.org/openbrand/register/brand3612.htm

Android, for these purposes, is, of course, Linux with a different libc, so most of the POSIXy stuff is there, even if bionic is pretty awful.

Re:Robigalia: seL4 and Rust by mwcampbell on Wednesday January 06, 2016 @05:37PM (#10854417)
Then add NetBSD drivers as rump kernels to get it running on real hardware. True, drivers in Rust would be even better, but IIUC, the whole point of using a microkernel is that the drivers would be running in user space with restricted privileges.
Re:Robigalia: seL4 and Rust by nickpsecurity on Wednesday January 06, 2016 @05:50PM (#10854513)
It helps in fault containment which helps availability primarily. Without IOMMU, they still can wreak havoc. So, drivers shown to be safe is still beneficial. I've so far seen that done with Ada/SPARK, w/ static analysis, Java w/ driver partly in JVM, and most recently ATS language. Rust would make a nice experiment.
Re:Robigalia: seL4 and Rust by Scramblejams on Tuesday January 19, 2016 @10:46AM (#10931446)
Not just that, but I worry about IOMMU bugs. A safe driver would help mitigate those.
Re:Robigalia: seL4 and Rust by nickpsecurity on Thursday January 28, 2016 @08:12PM (#10992805)
Good point. Few think about that. Hardware will periodically fail, especially on deep-submicron processes.