Bug 1560019
| Summary: | OSP container images do not pass RPM verification check | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Alan Bishop <abishop> | |
| Component: | openstack-selinux | Assignee: | Lon Hohberger <lhh> | |
| Status: | CLOSED ERRATA | QA Contact: | Pavel Sedlák <psedlak> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 13.0 (Queens) | CC: | abehl, apevec, bcook, m.andre, mburns, mgrepl, psedlak, srevivo | |
| Target Milestone: | beta | Keywords: | Triaged | |
| Target Release: | 13.0 (Queens) | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | openstack-selinux-0.8.14-1.el7ost | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1561022 (view as bug list) | Environment: | ||
| Last Closed: | 2018-06-27 13:48:15 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
Alan Bishop
2018-03-23 18:08:41 UTC
This is outside of containers - on RHEL 7.5 beta: [root@localhost ~]# rpm -V selinux-policy-targeted [root@localhost ~]# ls -lZ /etc/selinux/targeted/active/users_extra -rw-------. root root unconfined_u:object_r:semanage_store_t:s0 /etc/selinux/targeted/active/users_extra [root@localhost ~]# semanage port -N -m -p tcp 4444 -t mysqld_port_t [root@localhost ~]# rpm -V selinux-policy-targeted .M....... /etc/selinux/targeted/active/users_extra [root@localhost ~]# ls -lZ /etc/selinux/targeted/active/users_extra -rw-r--r--. root root unconfined_u:object_r:semanage_store_t:s0 /etc/selinux/targeted/active/users_extra This can be worked around in openstack-selinux It seems when you alter something with 'semanage', the /etc/selinux/targeted/active/users_extra file is rewritten with the wrong umask. I suspect we could simply have local_settings.sh use the right umask when installing policies. This reproduces on 7.4, so is not a regression. Built in RDO Queens Trunk https://trunk.rdoproject.org/centos7-queens/5a/fb/5afbeac1cc251a823aa0517fc5256a4f8697151e_0b604285/openstack-selinux-0.8.14-0.20180327131230.5afbeac.el7.centos.noarch.rpm In tested installation there is no rpm -V selinux-policy-targeted issue visible in overcloud container:
> [root@controller-0 heat-admin]# docker exec -ti -u root openstack-cinder-volume-docker-0 bash
> ()[root@controller-0 /]# stty cols 100
> ()[root@controller-0 /]# rpm -V selinux-policy-targeted
> ()[root@controller-0 /]# ls -l /etc/selinux/targeted/active/users_extra
> -rw-------. 1 root root 101 Jun 11 20:16 /etc/selinux/targeted/active/users_extra
> ()[root@controller-0 /]# rpm -q selinux-policy-targeted
> selinux-policy-targeted-3.13.1-192.el7_5.3.noarch
Also checked on controller in all containers, where given package is present, resulting with clean output.
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/RHEA-2018:2086 |