Skip to content

Commit d964565

Browse files
author
Ma Shimiao
committed
fix --seccomp-default parse
Signed-off-by: Ma Shimiao <[email protected]>
1 parent e3c6364 commit d964565

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

completions/bash/oci-runtime-tool

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ __oci-runtime-tool_complete_seccomp_arches() {
159159
# context of oci-runtime-tool containers.
160160
__oci-runtime-tool_complete_seccomp_actions() {
161161
COMPREPLY=( $( compgen -W "
162-
SCMP_ACT_ALLOW
163-
SCMP_ACT_ERRNO
164-
SCMP_ACT_KILL
165-
SCMP_ACT_TRACE
166-
SCMP_ACT_TRAP
162+
allow
163+
errno
164+
kill
165+
trace
166+
trap
167167
" -- "$cur" ) )
168168
}
169169
__oci-runtime-tool_complete_capabilities() {

man/oci-runtime-tool-generate.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ read the configuration from `config.json`.
193193

194194
**--linux-seccomp-default**=ACTION
195195
Specifies the the default action of Seccomp syscall restrictions and removes existing restrictions with the specified action
196-
Values: KILL,ERRNO,TRACE,ALLOW
196+
Values: kill, trap, errno, trace, allow
197197

198198
**--linux-seccomp-default-force**=ACTION
199199
Specifies the the default action of Seccomp syscall restrictions
200-
Values: KILL,ERRNO,TRACE,ALLOW
200+
Values: kill, trap, errno, trace, allow
201201

202202
**--linux-seccomp-errno**=SYSCALL
203203
Specifies syscalls to create seccomp rule to respond with ERRNO.

0 commit comments

Comments
 (0)