Implement sel_universal in python
Closed this issue · 1 comments
sel_universal file allows us to launch NaCl independent of the browser. This program shows what is the best way to launch standalone NaCl. Since this program is used internally within Google for debugging, it rarely changes with newer versions of NaCl releases.
Its better if we follow the same process in Lind to launch sel_ldr (the NaCl process). Instead of using the file descriptors in (deprecated) nacl_rpc.h file to set up the RPC channels, we need to use the NaClDesc (NaCl Descriptor)/DescWrapperFactory approach in sel_universal. Since this sel_universal uses many other classes, one approach is to create Python bindings for the sel_universal file.
However, we are postponing this adaption to later versions of Lind. Current focus is to get Lind working with latest NaCl as soon as possible. Once it works, we shall adapt it to sel_universal. For now we decided to make minor modification to lind_launcher.py (due to deprecated IMC send and recv msg functions), and make the Lind system work.
I think I tried to use sel_universal when I initially implemented the loader. I seem to recall it being harder to setup the sockets correctly from sel_universal. I don't recall the details though. The sel_ldr is not a compilex interface, and you guys are not using much of google's IPC infrastructure, so I'm not sure if adopting sel_universal is a huge win. But of course, follow your dreams!
On 2013-04-19, at 1:07 PM, psaiteja notifications@github.com wrote:
sel_universal file allows us to launch NaCl independent of the browser. This program shows what is the best way to launch standalone NaCl. Since this program is used internally within Google for debugging, it rarely changes with newer versions of NaCl releases.
Its better if we follow the same process in Lind to launch sel_ldr (the NaCl process). Instead of using the file descriptors in (deprecated) nacl_rpc.h file to set up the RPC channels, we need to use the NaClDesc (NaCl Descriptor)/DescWrapperFactory approach in sel_universal. Since this sel_universal uses many other classes, one approach is to create Python bindings for the sel_universal file.
However, we are postponing this adaption to later versions of Lind. Current focus is to get Lind working with latest NaCl as soon as possible. Once it works, we shall adapt it to sel_universal. For now we decided to make minor modification to lind_launcher.py (due to deprecated IMC send and recv msg functions), and make the Lind system work.
—
Reply to this email directly or view it on GitHub.