Re:Android removes much of Fuchsia-related code as Starnix p...
by bongobingo1 on Saturday July 16, 2022 @02:15AM
(#32115664)
From the outside looking in, it's seemed that Not Invented by this Team is just as likely a factor as NIH at google.
Re:Android removes much of Fuchsia-related code as Starnix p...
by iangudger on Sunday July 17, 2022 @12:01PM
(#32127960)
> That obviously doesn't work for a linux-on-fuschia compat layer.
This isn’t actually true. gVisor contains full implementations of Linux syscalls and only relies on host syscalls being the same for some interoperability features between sandboxed and host applications. It would be completely possible to port gVisor to a non-Linux operating system.
Re:Android removes much of Fuchsia-related code as Starnix p...
by uluyol on Sunday July 17, 2022 @01:19PM
(#32128835)
Right, it would be silly to intercept the syscalls and just pass them on as is to the host kernel. If you just want to validate/filter things for security reasons, there are existing Linux APIs for that.
gVisor provides a linux syscall interface to the guest, but ultimately calls a linux syscalls when it needs to invoke something in the host. That obviously doesn't work for a linux-on-fuschia compat layer. I guess you could re-use the guest side, but if gVisor wasn't written for pluggable backends it's probably more work to do that refactor than just build a separate tool.