OpenShift – Securing Containers by Stripping Capabilities

  • laurent 

Let say you want to prove to your security team that running a pod in Red Hat OpenShift is really removing capabilities from the running container.  There is not much documentation out there which explains how to find what capabilities get stripped so I will walk you through how you can make the case.

Step 1. Choose the pod you want to inspect in OpenShift

Step 2. We see that the container runs on host100. So lets login to host100 and see if this container is running

We see that the sha 94b796d20631098724552427211e673a88f442faca3405c63bbe03db13ff8984 of the container image is matching

Step 3. Now we need to get the pid of the running container process

Step 4. Lets find the CapBnd.

Step 5. We now translate that 00000000a80425fb into something readable.

Step 6. So what are all capabilities?

Step 7. That means that the following capabilities were removed on launch:


Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.