by runeks · 10y ago · 0 comments
> Until we fix this RCE vulnerability, the attacker will
> still be able to execute code on our host [...]
With Docker, it seems to me like we're moving closer and closer to the server being an executable of its own, but with the necessary Linux kernel bits compiled in such that it can execute on (virtualized) hardware.I'm wondering how far we can take this. The ability to execute code on the host is there because that's what Linux does, but what if we removed this interface, and replaced it with an interface that just accepts one or more ELF binaries at compile-time? Then these would become the only Linux executables that this kernel can execute.
As far as I can see, we could do the same to system calls: if an executable can enumerate all the system calls it needs, we can compile a kernel that will accept only these system calls, which should be a small subset of all available Linux syscalls.
> Unikernels are specialised, single address space machine images constructed by using library operating systems. A developer selects, from a modular stack, the minimal set of libraries which correspond to the OS constructs required for their application to run. These libraries are then compiled with the application and configuration code to build sealed, fixed-purpose images (unikernels) which run directly on a hypervisor or hardware without an intervening OS such as Linux or Windows.
However, you could base your unikernal capabilities on the same interface (like POSIX).
Current unikernals: http://unikernel.org/projects/
Either one doesn't make sense to me.
DOS was a downright minimal layer of code between the software and the hardware.
Little to no memory protection etc.
If it walks like a duck and quacks like a duck...
That is what pledge essentially does at runtime
---
You want to make your way in the CS field? Simple. Calculate rough time of amnesia (hell, 10 years is plenty, probably 10 months is plenty), go to the dusty archives, dig out something fun, and go for it. It’s worked for many people, and it can work for you.
— Ron MinnichKeep in mind that todays server hardware traces its lineage back to IBMs response to microcomputers like the AppleII and C64.