Bug 470949
Summary: | ocp requires text relocations and writable memory segments | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Charles R. Anderson <cra> |
Component: | ocp | Assignee: | Charles R. Anderson <cra> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 13 | CC: | cra, stian |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ocp-0.1.20-8.fc13 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-06-15 18:26:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Charles R. Anderson
2008-11-11 01:34:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '10'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 10's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 10 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle. Changing version to '13'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping This message is a reminder that Fedora 13 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '13'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 13's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 13 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping I believe the reason for the text relocations is because the 32-bit version of ocp uses i386 assembly code. Stian, is that the case? If so, there is probably no easy way to remove this requirement without rewriting the assembly, but I defer to the experts on that one. The x86_64 version is unaffected by this bug and does not require text relocations. The original workaround: chcon -t unconfined_execmem_exec_t /usr/bin/ocp-0.1.15 chcon -t textrel_shlib_t '/usr/lib/ocp-0.1.15/*.so doesn't stick after package updates. A more permanent workaround is: semanage fcontext -a -t textrel_shlib_t '/usr/lib/ocp-.*/.*\.so' I'll see about putting this into the package so it is handled automatically. I also haven't needed to set unconfined_execmem_exec_t on the binary recently. This might be because in a default Fedora 13 installation, the SELinux allow_execmem (and allow_execstack) boolean defaults to on. (In reply to comment #5) > I believe the reason for the text relocations is because the 32-bit version of > ocp uses i386 assembly code. Stian, is that the case? If so, there is > probably no easy way to remove this requirement without rewriting the assembly, > but I defer to the experts on that one. That is correct, and it only affects 32bit. Possible workaround is to disable the assembler optimized versions of the mixer or rewrite the assembler to support -fPIC correctly. Currently the assembler only push/pop the ebx registers if PIC is detected. Stian In default Fedora 14 and 15 installations, the SELinux booleans have different defaults: Fedora 13 i386: allow_execheap --> off allow_execmem --> on allow_execmod --> off allow_execstack --> on Fedora 14 i386: allow_execheap --> off allow_execmem --> on allow_execmod --> on allow_execstack --> off Fedora 15 i386: allow_execheap --> off allow_execmem --> on allow_execmod --> on allow_execstack --> on As a result, Fedora 14 & 15 by default permit the text relocations, so no workaround is required. ocp-0.1.20-8.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/ocp-0.1.20-8.fc14 ocp-0.1.20-8.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/ocp-0.1.20-8.fc15 ocp-0.1.20-8.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/ocp-0.1.20-8.fc13 Package ocp-0.1.20-8.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ocp-0.1.20-8.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/ocp-0.1.20-8.fc15 then log in and leave karma (feedback). ocp-0.1.20-8.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. ocp-0.1.20-8.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. ocp-0.1.20-8.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |