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 /container/mount.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 'container/mount.go')
| -rw-r--r-- | container/mount.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/container/mount.go b/container/mount.go index 171b210b..f6a8844f 100644 --- a/container/mount.go +++ b/container/mount.go @@ -6,6 +6,7 @@ import ( "os" . "syscall" + "hakurei.app/ext" "hakurei.app/message" "hakurei.app/vfs" ) @@ -115,7 +116,7 @@ func (p *procPaths) remount(msg message.Msg, target string, flags uintptr) error var targetKFinal string { var destFd int - if err := IgnoringEINTR(func() (err error) { + if err := ext.IgnoringEINTR(func() (err error) { destFd, err = p.k.open(targetFinal, O_PATH|O_CLOEXEC, 0) return }); err != nil { |
