gvisor/pkg/sentry/platform
Nicolas Lacasse 6cc9b311af platform: Pass device fd into platform constructor.
We were previously openining the platform device (i.e. /dev/kvm) inside the
platfrom constructor (i.e. kvm.New).  This requires that we have RW access to
the platform device when constructing the platform.

However, now that the runsc sandbox process runs as user "nobody", it is not
able to open the platform device.

This CL changes the kvm constructor to take the platform device FD, rather than
opening the device file itself. The device file is opened outside of the
sandbox and passed to the sandbox process.

PiperOrigin-RevId: 212505804
Change-Id: I427e1d9de5eb84c84f19d513356e1bb148a52910
2018-09-11 13:09:46 -07:00
..
filemem Map committed chunks concurrently in FileMem.LoadFrom. 2018-09-10 15:23:44 -07:00
interrupt stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
kvm platform: Pass device fd into platform constructor. 2018-09-11 13:09:46 -07:00
procid Bump to Go 1.11 2018-08-28 09:22:41 -07:00
ptrace stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
ring0 Add separate Recycle method for allocator. 2018-08-22 14:16:04 -07:00
safecopy stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
BUILD Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
context.go Check in gVisor. 2018-04-28 01:44:26 -04:00
mmap_min_addr.go Check in gVisor. 2018-04-28 01:44:26 -04:00
platform.go Add CPUID faulting for ptrace and KVM. 2018-07-16 22:02:58 -07:00