Google Native Client

Google Native Client
Google Native Client
Developer(s) Google, others
Preview release 1.0 / October 12, 2011; 37 days ago (2011-10-12)
Development status Research
Written in C++
Operating system Cross-platform: Microsoft Windows, Linux, Mac OS, Chrome OS
Type Sandbox in web browsers for native code
License New BSD license
Website code.google.com/p/nativeclient

Google Native Client (NaCl in an allusion to sodium chloride or common salt) is a sandboxing technology for running a subset of Intel x86 or ARM native code using software-based fault isolation.[1] Currently in development, it is proposed for safely running native code from a web browser, allowing web-based applications to run at near-native speeds[2], which aligns well with Google's plans about Chrome OS. It may also be used for securing browser plugins, and in the future parts of other applications or full applications.[3]

Contents

Overview

Native Client is an open source project being developed by Google.[4] To date, Quake, XaoS and MAME have been ported to Google Native Client Platform. Native Client was formerly available as an experimental disabled-by-default feature in the Google Chrome web browser.[2] The feature is enabled from version 14 of Chrome; at the same time, uploading native applications to Chrome Web Store is expected to be enabled, which will be the only way to run native client applications under Chrome for the time being.[5]

An ARM implementation was released in March 2010,[6] and x86-64 is also supported. However, As of March 2011, all three implementations can only use code compiled to the host's native instruction set. PNaCl (Portable Native Client, pronounced: pinnacle) is being developed to address this issue. To run an application portably under PNaCl, it must be compiled to an architecture-agnostic version of the LLVM intermediate representation bytecode.[7]

NaCl uses Software Fault Isolation for sandboxing on x86-64 and ARM.[8] The x86-32 implementation of Native Client is notable for its novel sandboxing method which makes use of the x86 architecture's rarely-used segmentation facility.[9] Native Client sets up x86 segments to restrict the memory range that the sandboxed code can access. It uses a code verifier to prevent use of unsafe instructions such as those that perform system calls. To prevent the code from jumping to an unsafe instruction hidden in the middle of a safe instruction, Native Client requires that all indirect jumps be jumps to the start of 32-byte-aligned blocks, and instructions are not allowed to straddle these blocks.[9] Because of these constraints, C code must be recompiled to run under Native Client, which provides customised versions of the GNU toolchain, specifically gcc and binutils.

Native Client is licensed under a BSD-style license.

Native Client uses Newlib as its C library, but a port of GNU libc is also available.[10]

Since release 0.5, Native Client has a stable ABI.[11] This roughly means that code compiled and running in the NaCl implementation of Google Chrome 14, will work in all future versions of Google Chrome.

Pepper

Pepper API is a cross-platform, open-source API for creating Native Client modules.[12] Pepper Plugin API, or PPAPI[13][14] is a cross-platform API for Native Client-secured web browser plugins, first based on Netscape's NPAPI, then rewritten from scratch. It is currently an experimental feature of Chromium and Google Chrome (there is a Chrome experiment in chrome://flags to enable the PPAPI version of Flash), though the built-in PDF-viewer already uses it[15].

Controversies

Some groups of browser developers support the Native Client technology, but others do not. This technology is controversial with x86 browser developers.

Supporters: Chad Austin (of IMVU) are praising the way Native Client can bring high-performance applications to the web (with about 5% penalty compared to native code) in a secure way, while also accelerating the evolution of client-side applications by giving a choice of the programming language used (beside JavaScript).[16]

Detractors: Other IT professionals are more critical of this sandboxing technology as it has substantial or substantive interoperability issues.

Mozilla's vice president of products, Jay Sullivan said it has no intention to run native code inside the browser, as

"These native apps are just little black boxes in a webpage. [...] We really believe in HTML, and this is where we want to focus."[17]

Håkon Wium Lie, Opera's CTO believes that

"NaCl seems to be 'yearning for the bad old days, before the web'", and that "Native Client is about building a new platform – or porting an old platform into the web [...] it will bring in complexity and security issues, and it will take away focus from the web platform."[3]

Christopher Blizzard, Mozilla's Open Source evangelist fears that without the source code, the pace of innovation will slow, and compares NaCl to Microsoft's ActiveX technology, plagued with DLL hell. In his views, even if it's secure, Native Client isn't a good thing.[3]

References

  1. ^ Efficient software-based fault isolation, Robert Wahbe, Steven Lucco, Thomas E. Anderson, Susan L. Graham, 1993
  2. ^ a b Native Client: A Technology for Running Native Code on the Web
  3. ^ a b c Cade Metz (2011-09-12). "Google Native Client: The web of the future – or the past?". The Register. http://www.theregister.co.uk/2011/09/12/google_native_client_from_all_sides/. Retrieved 2011-09-17. 
  4. ^ Google Native Client on Google Code
  5. ^ The Chromium Blog: Native Client Brings Sandboxed Native Code to Chrome Web Store Apps
  6. ^ "Google's Native Client goes ARM and beyond". The H. 18 March 2010. http://www.h-online.com/open/news/item/Google-s-Native-Client-goes-ARM-and-beyond-957478.html. Retrieved 2010-05-19. 
  7. ^ PNaCl: Portable Native Client Executables
  8. ^ David Sehr, Robert Muth, Cliff L. Biffle, Victor Khimenko, Egor Pasko, Bennet Yee, Karl Schimpf, Brad Chen (2010). "Adapting Software Fault Isolation to Contemporary CPU Architectures". 19th USENIX Security Symposium. http://research.google.com/pubs/pub35649.html. Retrieved July 31, 2011. 
  9. ^ a b Bennet Yee, David Sehr, Greg Dardyk, Brad Chen, Robert Muth, Tavis Ormandy, Shiki Okasaka, Neha Narula, Nicholas Fullagar (2009). "Native Client: A Sandbox for Portable, Untrusted x86 Native Code". IEEE Symposium on Security and Privacy (Oakland'09). http://research.google.com/pubs/pub34913.html. Retrieved July 31, 2011. 
  10. ^ NativeClient: Plash Wiki
  11. ^ Official NaCl Release Notes
  12. ^ Native Client SDK: Pepper C API
  13. ^ Pepper Plugin API project at code.google.com
  14. ^ Chrome Source: Index of /trunk/src/ppapi
  15. ^ The Register: Google hugs Adobe harder with Chrome-PDF merge
  16. ^ Chad Austin: In Defense of Language Democracy (Or: Why the Browser Needs a Virtual Machine)
  17. ^ The Register: Mozilla: Our browser will not run native code

External links

Examples


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Google Native Client — (NaCl en allusion au chlorure de sodium, soit le sel commun) est une technologie sandbox permettant l exécution d un sous ensemble de code natif virtualisé sur une architecture x86. C est un projet opensource qui donnera la possibilité aux… …   Wikipédia en Français

  • Native Client — Разработчик …   Википедия

  • Google Chrome — This article is about the web browser. For the operating system, see Google Chrome OS. Google Chrome …   Wikipedia

  • Google Chrome — Для термина «Chrome» см. другие значения. Эта статья о браузере; об операционной системе см.: Google Chrome OS. Google Chrome …   Википедия

  • Google Code — URL http://code.google.com Description Service de diffusion des codes sources de Google Commercial …   Wikipédia en Français

  • Google Chrome OS — 0.13.587.135 Company / deve …   Wikipedia

  • Google Maps — Screenshot of Google Maps showing a route from San Francisco to Los Angeles on Interstate 5 …   Wikipedia

  • Google Cloud Print — is a Google service aiming to enable any application (web, desktop, mobile) on any device in the network cloud to print to any printer[1] – without Google having to create and maintain printing subsystems for all the hardware combinations of… …   Wikipedia

  • Google Analytics — Developer(s) Google Operating system Cross platform (web based application) …   Wikipedia

  • Google Chrome — Entwickler Google Inc. (mehr) Aktuelle Version 15.0 (25. Oktober 2011) Betriebssystem …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”