-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
4.12
-
Important
-
None
-
Rejected
-
False
-
-
Customer Escalated
-
-
Description of problem:
Can not run "ip link set lo down" inside OCP 4.12 Pod even though the capabilities have been set against the binary
Version-Release number of selected component (if applicable):
4.12.0-0.ci.test-2022-10-19-103705-ci-ln-b4wpri2-latest
How reproducible:
100%
Steps to Reproduce:
1. Create image FROM registry.access.redhat.com/ubi8/ubi:8.5 RUN dnf install -y iputils net-tools iproute RUN setcap cap_net_admin+ep /usr/sbin/ip CMD sleep infinity 2. Add privileged scc to default service account oc adm policy add-scc-to-user privileged system:serviceaccount:test-iplink:default 3. Create pod apiVersion: v1 kind: Pod metadata: name: 'iplink' namespace: 'test-iplink' spec: containers: - name: appcntr1 image: 'registry.kni-qe-22.lab.eng.bos.redhat.com:5000/openshift/iplink:v1.0' imagePullPolicy: IfNotPresent command: [ "/bin/bash", "-c", "--" ] args: [ "while true; do sleep 300000; done;" ] securityContext: runAsGroup: 9999 runAsUser: 9999 capabilities: add: ["NET_ADMIN"] 3. Check the result $ oc get pods NAME READY STATUS RESTARTS AGE testpod 1/1 Running 0 5m17s $ oc rsh testpod ip link set lo up RTNETLINK answers: Operation not permitted
Actual results:
$ oc rsh testpod ip link set lo up RTNETLINK answers: Operation not permitted
Expected results:
ip link set lo up should succeed
Additional info:
- clones
-
OCPBUGS-1425 [OCP 4.11] Capabilities are not honored
- Closed