diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-05 02:47:43 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-05 02:47:43 +0900 |
| commit | c1399f5030abde76728ba7982a7a22fd49e75359 (patch) | |
| tree | 06e2a2ce11dbd7536150fd57824e406f101d50d9 /internal/outcome/spcontainer_test.go | |
| parent | 9ac63aac0cb025d1de195dbc57d0c89ebd1d7cc5 (diff) | |
std: rename from comp
Seccomp lookup tables are going to be relocated here, and PNR constants.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/spcontainer_test.go')
| -rw-r--r-- | internal/outcome/spcontainer_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/outcome/spcontainer_test.go b/internal/outcome/spcontainer_test.go index 3b003054..9a567e27 100644 --- a/internal/outcome/spcontainer_test.go +++ b/internal/outcome/spcontainer_test.go @@ -9,9 +9,9 @@ import ( "hakurei.app/container" "hakurei.app/container/check" - "hakurei.app/container/comp" "hakurei.app/container/fhs" "hakurei.app/container/seccomp" + "hakurei.app/container/std" "hakurei.app/container/stub" "hakurei.app/hst" "hakurei.app/system" @@ -65,11 +65,11 @@ func TestSpParamsOp(t *testing.T) { HostAbstract: true, Path: config.Container.Path, Args: []string{config.Container.Path.String()}, - SeccompPresets: comp.PresetExt | comp.PresetDenyDevel | comp.PresetDenyNS | comp.PresetDenyTTY, + SeccompPresets: std.PresetExt | std.PresetDenyDevel | std.PresetDenyNS | std.PresetDenyTTY, Uid: 1000, Gid: 100, Ops: new(container.Ops). - Root(m("/var/lib/hakurei/base/org.debian"), comp.BindWritable). + Root(m("/var/lib/hakurei/base/org.debian"), std.BindWritable). Proc(fhs.AbsProc).Tmpfs(hst.AbsPrivateTmp, 1<<12, 0755). DevWritable(fhs.AbsDev, true). Tmpfs(fhs.AbsDev.Append("shm"), 0, 01777), @@ -107,9 +107,9 @@ func TestSpParamsOp(t *testing.T) { Uid: 1000, Gid: 100, Ops: new(container.Ops). - Root(m("/var/lib/hakurei/base/org.debian"), comp.BindWritable). + Root(m("/var/lib/hakurei/base/org.debian"), std.BindWritable). Proc(fhs.AbsProc).Tmpfs(hst.AbsPrivateTmp, 1<<12, 0755). - Bind(fhs.AbsDev, fhs.AbsDev, comp.BindWritable|comp.BindDevice). + Bind(fhs.AbsDev, fhs.AbsDev, std.BindWritable|std.BindDevice). Tmpfs(fhs.AbsDev.Append("shm"), 0, 01777), }, paramsWantEnv(config, map[string]string{ "TERM": "xterm", @@ -425,8 +425,8 @@ func TestSpFilesystemOp(t *testing.T) { Bind( fhs.AbsVarLib.Append("hakurei/u0/org.chromium.Chromium"), check.MustAbs("/data/data/org.chromium.Chromium"), - comp.BindWritable|comp.BindEnsure). - Bind(fhs.AbsDev.Append("dri"), fhs.AbsDev.Append("dri"), comp.BindDevice|comp.BindWritable|comp.BindOptional). + std.BindWritable|std.BindEnsure). + Bind(fhs.AbsDev.Append("dri"), fhs.AbsDev.Append("dri"), std.BindDevice|std.BindWritable|std.BindOptional). Remount(fhs.AbsRoot, syscall.MS_RDONLY), }, nil, nil}, }) |
