You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Idea: host-OS-independence with alternate syscall interface #7
I have an idea for this that builds on an idea I've had for a long time but have never had (and probably will not have) the time to implement.
The idea is to pseudo-virtualize Linux binaries by rebuilding them to call a function in user-space instead of executing CPU-level syscalls. This would require apps to be rebuilt from source, making it effectively a different "hardware architecture" (e.g. x86_64-uvirt or something) from standard Linux, but would otherwise be fully compatible. This would eliminate the ptrace requirement to make it portable and also might be faster.
It seems like it would be borderline trivial to do this with gVisor.
This would open up the possibility of embedding Linux hosts inside anything including desktop and mobile apps or server processes for other OSes like Windows. You could port, desktop-ify, or even mobile-ify any complex Linux application.
If you ported gVisor to other OS', i.e. came up with a kvm-like platforms using an OS X / Windows / whatever hypervisor, and moved some Linux-specific bits in the sentry around, you wouldn't even need to modify the binaries you want to run.
You could have to rebuild if you want to skip the hypervisor/syscall-interception-platform and move only the Linux-specific bits around. But that's kind of a totally different project than what gVisor is targeted at.
Isn't the point of gVisor to secure untrusted workloads though? If so, that is stopping the unknown software from embedding syscalls and not play nice?
Activity
littleq0903 commentedon May 3, 2018
it would be like what WSL does in Windows.
hugelgupf commentedon May 3, 2018
If you ported gVisor to other OS', i.e. came up with a kvm-like platforms using an OS X / Windows / whatever hypervisor, and moved some Linux-specific bits in the sentry around, you wouldn't even need to modify the binaries you want to run.
You could have to rebuild if you want to skip the hypervisor/syscall-interception-platform and move only the Linux-specific bits around. But that's kind of a totally different project than what gVisor is targeted at.
bluecmd commentedon May 5, 2018
Isn't the point of gVisor to secure untrusted workloads though? If so, that is stopping the unknown software from embedding syscalls and not play nice?
adamierymenko commentedon May 7, 2018
@hugelgupf Yes that could work, but the thought I had was to make it possible to run Linux environments anywhere with no elevated permissions.
runsc/boot/filter: permit SYS_TIME for race
runsc/boot/filter: permit SYS_TIME for race
fvoznika commentedon Aug 23, 2018
Closing old bugs. Please reopen if you'd like to continue the discussion.
runsc/boot/filter: permit SYS_TIME for race
archerbroler commentedon Feb 26, 2019
bluepill can be done on win too. perhaps its not such hard to port gvisor to win.
amscanne commentedon Feb 26, 2019
I'm not familiar with the Windows hypervisor APIs, is there good reference documentation?
Merge pull request #7 from google/codeowners
nvproxy: add missing UVM_UNMAP_EXTERNAL ioctl
nvproxy: add missing UVM_UNMAP_EXTERNAL ioctl
nvproxy: add missing UVM_UNMAP_EXTERNAL ioctl
nvproxy: add missing UVM_UNMAP_EXTERNAL ioctl
port: add EL0 exception vectors for sentry-as-ring0 Phase 1
port: add EL0 exception vectors for sentry-as-ring0 Phase 1
Don't count RACK-lost TCP segments as in flight.