Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I run Google's Native Client outside of the browser?

Is it possible to run Google NaCl outside of the browser as a process sandbox?

like image 262
Rafał Sobota Avatar asked Jan 14 '11 11:01

Rafał Sobota


People also ask

How do I run Native Client in Chrome?

Type about:flags in the Chrome address bar, scroll down to “Native Client”, click the “Enable” link, scroll down to the bottom of the page, and click the “Relaunch Now” button (all browser windows will restart). Verify that the Native Client plugin is enabled in Google Chrome.

What is Native Client in Chrome OS?

Native Client was a sandbox for running compiled C and C++ code in the browser efficiently and securely, independent of the user's operating system. It was deprecated in 2020 and support will end in June 2021.

What is Native Client application?

Native Client (NaCl) is an open-source technology for running native compiled code in the browser, with the goal of maintaining the portability and safety that users expect from web applications.

What is Portable Native Client?

Portable Native Client is a technology that enables portable, secure execution of native applications in Chrome. This extension of the Native Client project brings the performance and low-level control of native code to modern web browsers without sacrificing the security and portability of the web.


2 Answers

Yes. The standalone build of Native Client contains a program called "sel_ldr" which runs the NaCl sandbox outside of the web browser. A lot of NaCl's test suite tests NaCl by running programs under sel_ldr rather than under the browser.

like image 57
Mark Seaborn Avatar answered Sep 23 '22 17:09

Mark Seaborn


The Native Client documentation is probably a good starting point for trying to figure out how everything works.

As Mark Seaborn and Bennet Yee indicate, you are probably best off looking into using sel_ldr. More details about how sel_ldr is included in "The life of sel_ldr".

I haven't personally implemented anything that uses NaCl outside of a browser, so I can't unfortunately comment on the ease of doing so.

like image 39
garethm Avatar answered Sep 24 '22 17:09

garethm