From 045bc5fae71b6816daba9a6a6bb5b92c82dfe09a Mon Sep 17 00:00:00 2001 From: Zhou Hao Date: Thu, 9 Nov 2017 10:37:38 +0800 Subject: [PATCH] generate: fixed seccompSet Signed-off-by: Zhou Hao --- cmd/oci-runtime-tool/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/oci-runtime-tool/generate.go b/cmd/oci-runtime-tool/generate.go index ef57d5be..38c3cc74 100644 --- a/cmd/oci-runtime-tool/generate.go +++ b/cmd/oci-runtime-tool/generate.go @@ -1168,7 +1168,7 @@ func addSeccomp(context *cli.Context, g *generate.Generator) error { } func seccompSet(context *cli.Context, seccompFlag string, g *generate.Generator) error { - flagInput := context.String("seccomp-" + seccompFlag) + flagInput := context.String("linux-seccomp-" + seccompFlag) flagArgs := strings.Split(flagInput, ",") setSyscallArgsSlice := []seccomp.SyscallOpts{} for _, flagArg := range flagArgs {