Merge pull request #4699 from dweomer/selinx-relabel-dev-shm

cri: selinux relabel /dev/shm
This commit is contained in:
Michael Crosby 2020-11-09 12:12:35 -05:00 committed by GitHub
commit 293b08dd19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,9 +99,10 @@ func (c *criService) containerMounts(sandboxID string, config *runtime.Container
sandboxDevShm = devShm sandboxDevShm = devShm
} }
mounts = append(mounts, &runtime.Mount{ mounts = append(mounts, &runtime.Mount{
ContainerPath: devShm, ContainerPath: devShm,
HostPath: sandboxDevShm, HostPath: sandboxDevShm,
Readonly: false, Readonly: false,
SelinuxRelabel: true,
}) })
} }
return mounts return mounts