mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add test that runs runsc do inside a non-gVisor container.
This is used in contexts such as Dangerzone: https://gvisor.dev/blog/2024/09/23/safe-ride-into-the-dangerzone/ Updates issue #10944. PiperOrigin-RevId: 682454284
This commit is contained in:
committed by
gVisor bot
parent
b89f53b2ce
commit
1ea84d6db0
@@ -116,6 +116,9 @@ type RunOpts struct {
|
||||
|
||||
Devices []container.DeviceMapping
|
||||
|
||||
// SecurityOpts are security options to set on the container.
|
||||
SecurityOpts []string
|
||||
|
||||
// sniffGPUOpts, if set, sets the rules for GPU sniffing during this test.
|
||||
// Must be set via `RunOpts.SniffGPU`.
|
||||
sniffGPUOpts *SniffGPUOpts
|
||||
@@ -347,6 +350,7 @@ func (c *Container) hostConfig(r RunOpts) *container.HostConfig {
|
||||
CapAdd: r.CapAdd,
|
||||
CapDrop: r.CapDrop,
|
||||
Privileged: r.Privileged,
|
||||
SecurityOpt: r.SecurityOpts,
|
||||
ReadonlyRootfs: r.ReadOnly,
|
||||
NetworkMode: container.NetworkMode(r.NetworkMode),
|
||||
Resources: container.Resources{
|
||||
|
||||
Reference in New Issue
Block a user