Re:Mezzano – An operating system written in Common Lisp
by nickpsecurity on Thursday August 25, 2016 @05:19PM
(#12362587)
Relevant links here:
Re:Mezzano – An operating system written in Common Lisp
by joshmarlow on Sunday August 28, 2016 @02:45PM
(#12377827)
I've really enjoyed your link-sharing lately. Thanks for spreading knowledge :)
Re:Mezzano – An operating system written in Common Lisp
by catnaroek on Thursday August 25, 2016 @01:45PM
(#12360961)
No runtime analysis can simultaneously allow all intended sharing and prevent all unintended sharing. Best you can hope for is a static analysis that rejects programs that would share objects in unintended ways.
Re:Mezzano – An operating system written in Common Lisp
by joshmarlow on Thursday August 25, 2016 @03:09PM
(#12361597)
I'm not talking about automated runtime analysis per se. The type of permission setting I had in mind would be specified by the programmer and enforced by the runtime/OS.
The security angle is interesting.
The thing about independent processes is that we're relying on the OS to provide a wall around each process to limit it's impact by default. Maybe a better approach would to be include something like chroot/containerization for execution of closures within the language? Ie, if program 'A' receives data from program 'B', it can evaluate that data in a sandbox with limited permissions (IO limitations like no networking, or CPU resource limitations and time limits) and receive exceptions if the closure tries to exceed it's permissions. That could fit in pretty cleanly with Common Lisp's condition system.
A con of this though: you could argue that it really breaks encapsulation; it's bad enough when different parts of a large program become too closely coupled - allowing different applications to depend on the internal state of each other could be a nightmare.