From 586eda82453ef1f136ffa4a65c89173cc0d3e7f4 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Sun, 12 Nov 2017 17:51:32 +0100 Subject: [PATCH] container_create: set the seccomp profile in the container object Signed-off-by: Antonio Murdaca --- server/container_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/container_create.go b/server/container_create.go index e69adef5..540ff891 100644 --- a/server/container_create.go +++ b/server/container_create.go @@ -1066,7 +1066,6 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string, } } specgen.AddAnnotation(annotations.SeccompProfilePath, spp) - // TODO(runcom): add spp to container... metaname := metadata.Name attempt := metadata.Attempt @@ -1213,6 +1212,7 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string, } container.SetSpec(specgen.Spec()) container.SetMountPoint(mountPoint) + container.SetSeccompProfilePath(spp) for _, cv := range containerVolumes { container.AddVolume(cv)