diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-17 13:35:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-17 13:39:26 +0900 |
| commit | cd5959fe5ab04786cd5dee3cf09f725229ae7c7b (patch) | |
| tree | c0dae3f950528e7c3b6d7359441ee8aeb9a488cd /container/landlock.go | |
| parent | 08c35ca24fabc41268411cec14ea386a6d87ece9 (diff) | |
ext: isolate from container/std
These are too general to belong in the container package. This targets the v0.4 release to reduce the wrapper maintenance burden.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/landlock.go')
| -rw-r--r-- | container/landlock.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/container/landlock.go b/container/landlock.go index acaab585..a8007692 100644 --- a/container/landlock.go +++ b/container/landlock.go @@ -5,7 +5,7 @@ import ( "syscall" "unsafe" - "hakurei.app/container/std" + "hakurei.app/ext" ) // include/uapi/linux/landlock.h @@ -223,7 +223,7 @@ func (rulesetAttr *RulesetAttr) Create(flags uintptr) (fd int, err error) { } rulesetFd, _, errno := syscall.Syscall( - std.SYS_LANDLOCK_CREATE_RULESET, + ext.SYS_LANDLOCK_CREATE_RULESET, pointer, size, flags, ) @@ -247,7 +247,7 @@ func LandlockGetABI() (int, error) { // LandlockRestrictSelf applies a loaded ruleset to the calling thread. func LandlockRestrictSelf(rulesetFd int, flags uintptr) error { r, _, errno := syscall.Syscall( - std.SYS_LANDLOCK_RESTRICT_SELF, + ext.SYS_LANDLOCK_RESTRICT_SELF, uintptr(rulesetFd), flags, 0, |
