aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/syscall.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-19 15:51:56 +0900
committerOphestra <cat@gensokyo.uk>2026-10-19 15:51:56 +0900
commitcfad02947d33ed17a1857ab1b33c7fd44cad8dc9 (patch)
tree18553e0550ffd5d0c81a440a0d30daed1cdb646d /container/syscall.go
parent58913f00845903aa2068f6cb0778baa563d58d14 (diff)
ext: add additional constants
This removes the syscall cutoff thresholds, instead declaring all syscall number constants in package ext. This also removes two constants from package container which were inadvertently exported for 386 and amd64. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/syscall.go')
-rw-r--r--container/syscall.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/container/syscall.go b/container/syscall.go
index e008ecea..43e49bea 100644
--- a/container/syscall.go
+++ b/container/syscall.go
@@ -9,7 +9,7 @@ import (
// setNoNewPrivs sets the calling thread's no_new_privs attribute.
func setNoNewPrivs() error {
- return ext.Prctl(PR_SET_NO_NEW_PRIVS, 1, 0)
+ return ext.Prctl(ext.PR_SET_NO_NEW_PRIVS, 1, 0)
}
// schedParam is equivalent to struct sched_param from include/linux/sched.h.