aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--container/init.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/container/init.go b/container/init.go
index aa920012..04867ba1 100644
--- a/container/init.go
+++ b/container/init.go
@@ -211,7 +211,7 @@ func Init(prepare func(prefix string), setVerbose func(verbose bool)) {
}
}
- if _, _, errno := Syscall(PR_SET_NO_NEW_PRIVS, 1, 0, 0); errno != 0 {
+ if _, _, errno := Syscall(SYS_PRCTL, PR_SET_NO_NEW_PRIVS, 1, 0); errno != 0 {
log.Fatalf("prctl(PR_SET_NO_NEW_PRIVS): %v", errno)
}