aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-18 16:47:23 +0900
committerOphestra <cat@gensokyo.uk>2025-08-18 16:48:01 +0900
commita3988c1a7725eb791795643e0810f03bab4572b3 (patch)
tree53284c7405b077a2f09c2b5b08117f85a21554d9 /hst
parent5db07140726e6e1bf615ed075e9a8b653508c2a7 (diff)
hst: rename net and abstract fields
This makes more sense and matches the container library. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst')
-rw-r--r--hst/config.go4
-rw-r--r--hst/hst.go3
-rw-r--r--hst/hst_test.go3
3 files changed, 6 insertions, 4 deletions
diff --git a/hst/config.go b/hst/config.go
index d6f07be0..8226a35f 100644
--- a/hst/config.go
+++ b/hst/config.go
@@ -78,9 +78,9 @@ type (
// allow userns creation in container
Userns bool `json:"userns,omitempty"`
// share host net namespace
- Net bool `json:"net,omitempty"`
+ HostNet bool `json:"host_net,omitempty"`
// share abstract unix socket scope
- Abstract bool `json:"abstract,omitempty"`
+ HostAbstract bool `json:"host_abstract,omitempty"`
// allow dangerous terminal I/O
Tty bool `json:"tty,omitempty"`
// allow multiarch
diff --git a/hst/hst.go b/hst/hst.go
index 92769a23..6e77dc98 100644
--- a/hst/hst.go
+++ b/hst/hst.go
@@ -79,7 +79,8 @@ func Template() *Config {
Hostname: "localhost",
Devel: true,
Userns: true,
- Net: true,
+ HostNet: true,
+ HostAbstract: true,
Device: true,
WaitDelay: -1,
SeccompFlags: seccomp.AllowMultiarch,
diff --git a/hst/hst_test.go b/hst/hst_test.go
index 31b9013e..a3930f48 100644
--- a/hst/hst_test.go
+++ b/hst/hst_test.go
@@ -90,7 +90,8 @@ func TestTemplate(t *testing.T) {
"seccomp_compat": true,
"devel": true,
"userns": true,
- "net": true,
+ "host_net": true,
+ "host_abstract": true,
"tty": true,
"multiarch": true,
"env": {