Bug 1708202
| Summary: | SCC admin policy sub-commands are broken | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Standa Laznicka <slaznick> |
| Component: | oc | Assignee: | Sally <somalley> |
| Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.1.0 | CC: | aos-bugs, erich, jokerman, maszulik, mfojtik, sttts, vigoyal |
| Target Milestone: | --- | ||
| Target Release: | 4.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-04 11:12:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Standa Laznicka
2019-05-09 11:12:02 UTC
How does this affect docs?
> https://docs.openshift.com/container-platform/4.1/cli_reference/administrator-cli-commands.html#policy
Sally, sync with Standa what needs to be done and let this ship in 4.4. I've confirmed with latest version `Cluster version is 4.5.0-0.ci-2020-02-27-004716` that this is no longer an issue. I am able to: $ oc adm policy add-scc-to-user privileged testuser, then create a privileged pod. Also, I confirmed I can: $ oc adm policy remove-scc-from-user privileged testuser, then am no longer able to create the privileged pod. Confirmed with latest oc client, the issue has fixed:
[root@dhcp-140-138 v3-testfiles]# oc version -o yaml
clientVersion:
buildDate: "2020-02-28T23:32:38Z"
compiler: gc
gitCommit: bc08a48555986f64165555efd2705eff7ef2de81
gitTreeState: clean
gitVersion: 4.4.0-202002282323-bc08a48
goVersion: go1.13.4
major: ""
minor: ""
platform: linux/amd64
[root@dhcp-140-138 home]# oc adm policy add-scc-to-user privileged testuser-2
securitycontextconstraints.security.openshift.io/privileged added to: ["testuser-2"]
[yinzhou@localhost roottest]$ oc whoami
testuser-2
[yinzhou@localhost roottest]$ oc get po -o yaml |grep privi
openshift.io/scc: privileged
privileged: true
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0581 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |