Bug 514506
Summary: | SELinux is preventing httpd from loading /usr/lib64/libnnz11.so which requires text relocation. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Joe Murray <joe.murray> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 5.4 | CC: | dwalsh, mgrepl, mmalik |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Prior to this update, SELinux prevented the httpd service from loading the /usr/lib/libnnz11.so (or /usr/lib64/libnnz11.so on a 64-bit system) library, which requires a text relocation. With this update, the SELinux context for this particular library has been changed from the default to "textrel_shlib_t", so that the library can now be loaded as expected.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2011-01-13 21:47:58 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
Joe Murray
2009-07-29 13:21:16 UTC
Off-hand, I'm guessing this is a bug in the liboci8-zend-11-1 package, which is the package that provides the shared library which is triggering the error. Running "chcon -t textrel_shlib_t /usr/lib64/libnnz11.so" may disable the protection check and allow the application to run, but it won't actually be fixing the bug. I don't think we built that package, so there's not much else I can suggest other than reporting the bug to the package's vendor. I'm leaning toward marking this closed->cantfix. # semanage fcontext -a -t textrel_shlib_t /usr/lib64/libnnz11.so # restorecon -v /usr/lib64/libnnz11.so Will actually set this permanent. We do not ship libnnz11.s0 So please report this as a bug to them. Most likely they built the library incorrectly, The library requires a PIC flag. This link explains the check. http://people.redhat.com/~drepper/selinux-mem.html I can add the label to SELinux policy for now. Looks like this is an oracle library. /usr/lib/oracle/.*/lib/libnnz.*\.so -- gen_context(system_u:object_r:textrel_shlib_t,s0) /opt/(.*/)?oracle/(.*/)?libnnz.*\.so -- gen_context(system_u:object_r:textrel_shlib_t,s0) Is in the current selinux-policy So I will add /usr/lib(64)?/libnnz11.so(\.[^/]*)* gen_context(system_u:object_r:textrel_shlib_t,s0) to Rawhide. Miroslav, can you add this label to F11 and F10. Added to selinux-policy-3.6.12-71.fc11 and selinux-policy-3.5.13-68.fc10 Fixed in selinux-policy-2.4.6-255.el5 Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Prior to this update, SELinux prevented the httpd service from loading the /usr/lib/libnnz11.so (or /usr/lib64/libnnz11.so on a 64-bit system) library, which requires a text relocation. With this update, the SELinux context for this particular library has been changed from the default to "textrel_shlib_t", so that the library can now be loaded as expected. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0026.html |