Re:Microsoft unveils sandbox boundaries for Windows 8/Metro ...
by barrkel on Friday May 18, 2012 @09:08PM
(#3994799)
You don't need a virtual machine to sandbox C++; or rather, there's already a virtual machine in action, in the form of virtual memory and CPU privilege levels. The only way C++ (or any other native language) has to access to the outside its world is through calls to the kernel. Without direct file I/O APIs, options are even more limited (e.g. you can't easily write your own DLL loader).
Re:Microsoft unveils sandbox boundaries for Windows 8/Metro ...
by msftguy on Friday May 18, 2012 @10:04PM
(#3994890)
OS X/iOS use a 'sandbox' driver that utilizes TrustedBSD MAC infrastructure ( https://developer.apple.com/library/mac/#documentation/Darwi... ).
Basically, most system calls can be verified against one or more policy modules, and blocked if non-compliant.
Not really possible with Windows and its bajillion of syscalls (1000 in win32k alone afair)
Re:Microsoft unveils sandbox boundaries for Windows 8/Metro ...
by krasin on Saturday May 19, 2012 @03:08AM
(#3995318)
>How could they sandbox a custom C++ app? There's no virtual machine to do it.
They could use NaCl [1] or develop a similar SFI technology just for Windows.
Re:Microsoft unveils sandbox boundaries for Windows 8/Metro ...
by bringking on Saturday May 19, 2012 @10:04AM
(#3995941)
It may be C++ but it is managed C++ that runs on the above the WinRT layer just like C#, and Javascript for metro. It will have the same restrictions as the other languages. It is actually interesting, in fact when you start a metro project at least in beta, you get the WinRT libraries and that's it. A ton of the traditional .NET classes have been moved into the WinRT library or removed all together.
Re:Microsoft unveils sandbox boundaries for Windows 8/Metro ...
by mkup on Saturday May 19, 2012 @04:27AM
(#3995455)
Virtual machine is not required for sandboxing C++ apps in 21st century.
Re:Microsoft unveils sandbox boundaries for Windows 8/Metro ...
by drivebyacct2 on Friday May 18, 2012 @09:25PM
(#3994827)
It's C++/CX. It's not just "real C++".
Re:Microsoft unveils sandbox boundaries for Windows 8/Metro ...
by contextfree on Saturday May 19, 2012 @02:52AM
(#3995287)
They can be written in ISO C++ (or if you're a masochist, in C) as well, just without some conveniences.
http://msdn.microsoft.com/en-us/library/windows/apps/hh46504...