www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Google open-sources project for sandboxing C/C++ libraries on Linux

reply Andre Pany <andre s-e-a-p.de> writes:
Hi,

I haven't used BetterC so far but if my understanding is correct 
libraries written with BetterC should also be compatible with 
this?

Google open-sources project for sandboxing C/C++ libraries on 
Linux

(https://www.zdnet.com/article/google-open-sources-project-for-sandboxing-cc-libraries-on-linux/)

Kind regards
Andre
Mar 19
parent sarn <sarn theartofmachinery.com> writes:
On Tuesday, 19 March 2019 at 15:57:24 UTC, Andre Pany wrote:
 Hi,

 I haven't used BetterC so far but if my understanding is 
 correct libraries written with BetterC should also be 
 compatible with this?

 Google open-sources project for sandboxing C/C++ libraries on 
 Linux

 (https://www.zdnet.com/article/google-open-sources-project-for-sandboxing-cc-libraries-on-linux/)

 Kind regards
 Andre
From the docs it works by using seccomp for syscall filtering (at least on Linux), so it should work with normal D libraries, too, if you provide a C or C++ header. The frontend API uses C++ templating, so I'm not sure if it's useful without C++.
Mar 19