Merge pull request #992 from baude/cri_tests_sec

Initial fixes for cri-tests
This commit is contained in:
Daniel J Walsh 2017-10-13 19:15:08 -04:00 committed by GitHub
commit 7b9a5c259e
3 changed files with 12 additions and 14 deletions

View file

@ -146,7 +146,7 @@ func resolveSymbolicLink(path string) (string, error) {
func addDevices(sb *sandbox.Sandbox, containerConfig *pb.ContainerConfig, specgen *generate.Generator) error {
sp := specgen.Spec()
if containerConfig.GetLinux().GetSecurityContext().Privileged {
if containerConfig.GetLinux().GetSecurityContext().GetPrivileged() {
hostDevices, err := devices.HostDevices()
if err != nil {
return err