SELinux is preventing / from mount access on the filesystem /proc in Red Hat OpenShift 4
Issue
-
Deployments are stuck in the ContainerCreating state on certain nodes.
-
Pods not starting with the error:
failed to create pod sandbox: rpc error: code = Unknown desc = container create failed: time="2021-11-08T09:06:10+03:00" level=error msg="container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:76: mounting \"proc\" to rootfs at \"/proc\" caused: mount through procfd: permission denied"
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Red Hat Enterprise Linux
- 7
- 8
- SELinux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.