diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-07 14:06:14 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-07 14:06:14 +0900 |
| commit | d5c7523726550898b13500f8a169cf13cdc42e7a (patch) | |
| tree | 4c4fd7a21d5a739cf89df3d3fe0544a5a93cc37c /container | |
| parent | ddfcc51b913a70da48102f64e18b34579dc3611c (diff) | |
container/init: fix prctl call
This is a very silly typo. Luckily has no effect due to an upper layer doing PR_SET_NO_NEW_PRIVS already.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container')
| -rw-r--r-- | container/init.go | 2 |
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) } |
