aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst
diff options
context:
space:
mode:
Diffstat (limited to 'hst')
-rw-r--r--hst/container.go2
-rw-r--r--hst/template.go22
-rw-r--r--hst/template_test.go2
3 files changed, 16 insertions, 10 deletions
diff --git a/hst/container.go b/hst/container.go
index 00f74795..1ee9e839 100644
--- a/hst/container.go
+++ b/hst/container.go
@@ -10,6 +10,8 @@ type (
// container hostname
Hostname string `json:"hostname,omitempty"`
+ // do not interrupt and wait for initial process during termination
+ ImmediateTermination bool `json:"immediate_termination,omitempty"`
// extra seccomp flags
SeccompFlags seccomp.ExportFlag `json:"seccomp_flags"`
// extra seccomp presets
diff --git a/hst/template.go b/hst/template.go
index 3f0101ea..60af2ebc 100644
--- a/hst/template.go
+++ b/hst/template.go
@@ -57,16 +57,18 @@ func Template() *Config {
Groups: []string{"video", "dialout", "plugdev"},
Container: &ContainerConfig{
- Hostname: "localhost",
- Devel: true,
- Userns: true,
- Net: true,
- Device: true,
- SeccompFlags: seccomp.AllowMultiarch,
- SeccompPresets: seccomp.PresetExt,
- Tty: true,
- Multiarch: true,
- MapRealUID: true,
+ Hostname: "localhost",
+ Devel: true,
+ Userns: true,
+ Net: true,
+ Device: true,
+ ImmediateTermination: true,
+ SeccompFlags: seccomp.AllowMultiarch,
+ SeccompPresets: seccomp.PresetExt,
+ SeccompCompat: true,
+ Tty: true,
+ Multiarch: true,
+ MapRealUID: true,
// example API credentials pulled from Google Chrome
// DO NOT USE THESE IN A REAL BROWSER
Env: map[string]string{
diff --git a/hst/template_test.go b/hst/template_test.go
index 2baf991b..a9b92262 100644
--- a/hst/template_test.go
+++ b/hst/template_test.go
@@ -80,8 +80,10 @@ func TestTemplate(t *testing.T) {
],
"container": {
"hostname": "localhost",
+ "immediate_termination": true,
"seccomp_flags": 1,
"seccomp_presets": 1,
+ "seccomp_compat": true,
"devel": true,
"userns": true,
"net": true,