Merge pull request #1146 from runcom/setspp

container_create: set the seccomp profile in the container object
This commit is contained in:
Mrunal Patel 2017-11-12 09:36:35 -10:00 committed by GitHub
commit 25ac83196f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)