Bug 1626215
| Summary: | 2 spec file issues | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Qian Cai <qcai> | |
| Component: | container-selinux | Assignee: | Jindrich Novy <jnovy> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | atomic-bugs <atomic-bugs> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 7.5 | CC: | atomic-bugs, dwalsh, lvrabec, toneata, ypu | |
| Target Milestone: | rc | Keywords: | Extras | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | container-selinux-2.69-3.el7 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1729272 (view as bug list) | Environment: | ||
| Last Closed: | 2020-04-13 09:10:02 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1729272 | |||
|
Description
Qian Cai
2018-09-06 18:20:19 UTC
Fixed in container-selinux-2.69-3.el7 Unfortunately, I don't think container-selinux-2.69-3.el7 fixes the spec file issues mentioned above. %changelog * Thu Sep 6 2018 Dan Walsh <dwalsh> - 2.69-3 - Make sure we pull in the latest selinux-policy This line a couple of lines later should fix label on /var/lib/containers
matchpathcon -qV %{_sharedstatedir}/containers || restorecon -R %{_sharedstatedir}/containers &> /dev/null || :
Can reproduce this with given container-selinux and selinux-policy-3.13.1-192.el7_5.3.noarch in 7.5.4. And container-selinux-2.73-2.el7.noarch request selinux-policy version >= 3.13.1-216. So test with container-selinux-2.73-2.el7.noarch and selinux-policy-3.13.1-225.el7.noarch: # semodule -X200 -i /usr/share/selinux/packages/container.pp.bz2 semodule -X200 -i /usr/share/selinux/packages/container.pp.bz2 The command finished as expect. So set this to verified. Sorry to reply on wrong bug. Set it back. Qian, do agree with my assessment?https://bugzilla.redhat.com/show_bug.cgi?id=1626215#c8 (In reply to Daniel Walsh from comment #7) > This line a couple of lines later should fix label on /var/lib/containers > > matchpathcon -qV %{_sharedstatedir}/containers || restorecon -R > %{_sharedstatedir}/containers &> /dev/null || : That helps one issue but also hope to see some checking for return code from, 87 %{_sbindir}/semodule -n -X 200 -s %{selinuxtype} -i $MODULES > /dev/null and bail out from rpm with a proper error code with a proper error message something like, %{_sbindir}/semodule -n -X 200 -s %{selinuxtype} -i $MODULES > /dev/null if [ $? -ne 0 ]; then echo "Error loading SELinux module." >&2 return 1 fi We can fix this in a future PR. This is definately not a blocker. Franticek have you made this change? (In reply to Qian Cai from comment #11) > (In reply to Daniel Walsh from comment #7) > > This line a couple of lines later should fix label on /var/lib/containers > > > > matchpathcon -qV %{_sharedstatedir}/containers || restorecon -R > > %{_sharedstatedir}/containers &> /dev/null || : > > That helps one issue but also hope to see some checking for return code from, > > 87 %{_sbindir}/semodule -n -X 200 -s %{selinuxtype} -i $MODULES > /dev/null > > and bail out from rpm with a proper error code with a proper error message > something like, > > %{_sbindir}/semodule -n -X 200 -s %{selinuxtype} -i $MODULES > /dev/null > if [ $? -ne 0 ]; then > echo "Error loading SELinux module." >&2 > return 1 > fi Well, that is not going to work as rpm still return 0 after post install script section failed. |