Pod does not use a custom SCC as expected.

Solution Verified - Updated -

Issue

  • Created a test custom scc that is base on restricted scc with some modifications to make it more secure. However after which OCP always uses custom scc as the default scc even if the service account is not linked to the specified pod.

    • Changed allowPrivilegeEscalation: from true to false.
    • Add NET_RAW to the requiredDropCapabilities:
  • How to resolve such type of issue.

Environment

  • Red Hat OpenShift Container Platform 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content