diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-17 15:48:40 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-17 15:48:40 +0900 |
| commit | b852402f67b22a3a850ce4eb1305a3ce5898d128 (patch) | |
| tree | 76ca77ab869198d5327e9557d8db897c0d6ec356 /internal/outcome/dispatcher.go | |
| parent | 6d015a949e27f20c86409c7d78053f0b0493f165 (diff) | |
ext: move syscall wrappers from container
These are generally useful, and none of them are container-specific. Syscalls subtle to use and requiring container-specific setup remains in container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/dispatcher.go')
| -rw-r--r-- | internal/outcome/dispatcher.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/outcome/dispatcher.go b/internal/outcome/dispatcher.go index e9f75237..a3d3dbbc 100644 --- a/internal/outcome/dispatcher.go +++ b/internal/outcome/dispatcher.go @@ -14,6 +14,7 @@ import ( "hakurei.app/container" "hakurei.app/container/seccomp" "hakurei.app/container/std" + "hakurei.app/ext" "hakurei.app/internal/dbus" "hakurei.app/internal/info" "hakurei.app/message" @@ -149,10 +150,10 @@ func (direct) notifyContext(parent context.Context, signals ...os.Signal) (ctx c return signal.NotifyContext(parent, signals...) } -func (direct) prctl(op, arg2, arg3 uintptr) error { return container.Prctl(op, arg2, arg3) } +func (direct) prctl(op, arg2, arg3 uintptr) error { return ext.Prctl(op, arg2, arg3) } func (direct) overflowUid(msg message.Msg) int { return container.OverflowUid(msg) } func (direct) overflowGid(msg message.Msg) int { return container.OverflowGid(msg) } -func (direct) setDumpable(dumpable uintptr) error { return container.SetDumpable(dumpable) } +func (direct) setDumpable(dumpable uintptr) error { return ext.SetDumpable(dumpable) } func (direct) receive(key string, e any, fdp *uintptr) (func() error, error) { return container.Receive(key, e, fdp) } |
