container_create: set the seccomp profile in the container object
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
edf2300205
commit
586eda8245
1 changed files with 1 additions and 1 deletions
|
@ -1066,7 +1066,6 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
specgen.AddAnnotation(annotations.SeccompProfilePath, spp)
|
specgen.AddAnnotation(annotations.SeccompProfilePath, spp)
|
||||||
// TODO(runcom): add spp to container...
|
|
||||||
|
|
||||||
metaname := metadata.Name
|
metaname := metadata.Name
|
||||||
attempt := metadata.Attempt
|
attempt := metadata.Attempt
|
||||||
|
@ -1213,6 +1212,7 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
||||||
}
|
}
|
||||||
container.SetSpec(specgen.Spec())
|
container.SetSpec(specgen.Spec())
|
||||||
container.SetMountPoint(mountPoint)
|
container.SetMountPoint(mountPoint)
|
||||||
|
container.SetSeccompProfilePath(spp)
|
||||||
|
|
||||||
for _, cv := range containerVolumes {
|
for _, cv := range containerVolumes {
|
||||||
container.AddVolume(cv)
|
container.AddVolume(cv)
|
||||||
|
|
Loading…
Add table
Reference in a new issue