Wiktor Garbacz 8a7d0d1cb3 Use a nested userns&mntns to pre-pivot_root
This addresses a latency issue - chroot_fs_refs called inside pivot_root
in the kernel can take several milliseconds on machines with many threads
running.
This might not always reduce latency for custom forkservers, as additional
fork can be more costly than pivot_root.

PiperOrigin-RevId: 281306284
Change-Id: If503ac76a70e5438e94caf708d79cb0219c66def
2019-11-19 09:02:28 -08:00
..
2019-11-14 03:51:26 -08:00
2019-08-23 08:08:51 -07:00
2019-03-18 19:00:48 +01:00
2019-08-23 08:08:51 -07:00
2019-08-23 08:08:51 -07:00
2019-08-23 08:08:51 -07:00
2019-03-18 19:00:48 +01:00
2019-05-17 07:21:31 -07:00
2019-04-23 10:30:45 -07:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-03-19 03:41:32 -07:00
2019-03-19 03:41:32 -07:00
2019-03-19 03:41:32 -07:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-04-26 06:18:59 -07:00
2019-07-15 23:59:24 -07:00
2019-11-14 03:51:26 -08:00
2019-11-14 03:51:26 -08:00
2019-11-14 03:51:26 -08:00
2019-11-14 03:51:26 -08:00
2019-03-18 19:00:48 +01:00
2019-09-11 02:39:49 -07:00
2019-03-20 05:19:55 -07:00
2019-11-14 03:51:26 -08:00
2019-11-14 03:51:26 -08:00
2019-10-07 02:36:35 -07:00
2019-08-23 08:08:51 -07:00
2019-08-23 08:08:51 -07:00
2019-08-23 08:08:51 -07:00
2019-08-23 08:08:51 -07:00
2019-09-11 02:39:49 -07:00
2019-08-23 08:08:51 -07:00
2019-08-23 08:08:51 -07:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-03-18 19:00:48 +01:00
2019-08-23 08:08:51 -07:00
2019-08-23 08:08:51 -07:00
2019-09-24 04:50:18 -07:00

Sandbox2

Sandbox2 is a C++ security sandbox for Linux which can be used to run untrusted programs or portions of programs in confined environments. The idea is that the runtime environment is so restricted that security bugs such as buffer overflows in the protected region cause no harm.

Documentation

Detailed developer documentation is available on the Google Developers site for Sandboxed API under Sandbox2.

There is also a Getting Started guide for Sandbox2.