aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/container.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-21 20:54:03 +0900
committerOphestra <cat@gensokyo.uk>2025-10-21 20:54:03 +0900
commite94acc424c5746eb6cf903ed97b4e71223fda50f (patch)
treec55f4b467ed11149006a799421936845bf64de99 /container/container.go
parentb1a4d801be033b41c559e9642ee05e2f0ec43d5b (diff)
container/comp: rename from bits
This package will also hold syscall lookup tables for seccomp. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/container.go')
-rw-r--r--container/container.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/container/container.go b/container/container.go
index ae83fc30..fb031c38 100644
--- a/container/container.go
+++ b/container/container.go
@@ -14,8 +14,8 @@ import (
. "syscall"
"time"
- "hakurei.app/container/bits"
"hakurei.app/container/check"
+ "hakurei.app/container/comp"
"hakurei.app/container/fhs"
"hakurei.app/container/seccomp"
"hakurei.app/message"
@@ -86,7 +86,7 @@ type (
// Extra seccomp flags.
SeccompFlags seccomp.ExportFlag
// Seccomp presets. Has no effect unless SeccompRules is zero-length.
- SeccompPresets bits.FilterPreset
+ SeccompPresets comp.FilterPreset
// Do not load seccomp program.
SeccompDisable bool
@@ -174,7 +174,7 @@ func (p *Container) Start() error {
}
if !p.RetainSession {
- p.SeccompPresets |= bits.PresetDenyTTY
+ p.SeccompPresets |= comp.PresetDenyTTY
}
if p.AdoptWaitDelay == 0 {