| Summary: | oo-admin-cartridge -a install does not restorecon the installed cartridge | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Luke Meyer <lmeyer> |
| Component: | Containers | Assignee: | Jhon Honce <jhonce> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | mmasters, pep, yadu |
| Target Milestone: | --- | Keywords: | UpcomingRelease |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-01-30 00:46:40 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: | |
| Bug Depends On: | |||
| Bug Blocks: | 998995, 1053029 | ||
|
Description
Luke Meyer
2013-08-20 18:52:01 UTC
Pull request: https://github.com/openshift/origin-server/pull/3601 Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/9af45ffce31442fb723b85761a798999d88251c8 CartridgeRepository#install: Don't keep context Don't preserve the context when installing a cartridge into the cartridge repository. The cartridge needs to be relabeled using the default contexts. This commit fixes bug 999117. Test on devenv_4224 [root@ip-10-73-161-138 ~]# setenforce 1 [root@ip-10-73-161-138 ~]# ls -lZ origin-server/cartridges/openshift-origin-cartridge-phpmyadmin/metadata/manifest.yml -rw-r--r--. root root unconfined_u:object_r:admin_home_t:s0 origin-server/cartridges/openshift-origin-cartridge-phpmyadmin/metadata/manifest.yml [root@ip-10-73-161-138 ~]# oo-admin-cartridge -a install -s origin-server/cartridges/openshift-origin-cartridge-phpmyadmin succeeded [root@ip-10-71-138-94 .cartridge_repository]# ls -lZ /var/lib/openshift/.cartridge_repository/redhat-phpmyadmin/0.0.6/metadata/manifest.yml -rw-r--r--. root root system_u:object_r:openshift_var_lib_t:s0 /var/lib/openshift/.cartridge_repository/redhat-phpmyadmin/0.0.6/metadata/manifest.yml The cartridge is relabeled using the default contexts. Move to verified. |