| Summary: | selinux text relocation nag from two myth libs... | ||
|---|---|---|---|
| Product: | Fedora | Reporter: | banyan |
| Component: | mythtv | Assignee: | Jarod Wilson <jarod> |
| Status: | RESOLVED EXPIRED | ||
| Severity: | normal | CC: | alexl, emmanuel, walrus |
| Priority: | P5 | ||
| Version: | 11 | ||
| Hardware: | i386 | ||
| OS: | GNU/Linux | ||
| namespace: | |||
I get the same kinds of errors from time to time. *** Bug 979 has been marked as a duplicate of this bug. *** Has this been fixed now? Can we close this bug yet? RPMFusion is no longer releasing updates for this version of Fedora. This bug will be set to RESOLVED:EXPIRED next week to reflect this. If the problem persists after upgrading to the latest version of Fedora, please update the version field of this bug (and re-open it if it has been closed). Setting to RESOLVED:EXPIRED since RPMFusion is no longer releasing updates for this version of Fedora. |
On updating to 0.22 and attempting to start the backend I got a permission denied. root@www ~]# service mythbackend start Starting mythbackend: /usr/bin/mythbackend: error while loading shared libraries: /usr/lib/libmythswscale-0.22.so.0: cannot restore segment prot after reloc: Permission denied [FAILED] The following was logged in messages... Nov 16 23:08:34 www setroubleshoot: SELinux is preventing mythbackend from loading /usr/lib/libmythswscale-0.22.so.0.22.0 which requires text relocation. For complete SELinux messages. run sealert -l aa875da1-29cc-49f3-8520-0c292ff233e8 The sealert is as follows. [root@www ~]# sealert -l aa875da1-29cc-49f3-8520-0c292ff233e8 Summary: SELinux is preventing mythbackend from loading /usr/lib/libmythswscale-0.22.so.0.22.0 which requires text relocation. Detailed Description: The mythbackend application attempted to load /usr/lib/libmythswscale-0.22.so.0.22.0 which requires text relocation. This is a potential security problem. Most libraries do not need this permission. Libraries are sometimes coded incorrectly and request this permission. The SELinux Memory Protection Tests (http://people.redhat.com/drepper/selinux-mem.html) web page explains how to remove this requirement. You can configure SELinux temporarily to allow /usr/lib/libmythswscale-0.22.so.0.22.0 to use relocation as a workaround, until the library is fixed. Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package. Allowing Access: If you trust /usr/lib/libmythswscale-0.22.so.0.22.0 to run correctly, you can change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t '/usr/lib/libmythswscale-0.22.so.0.22.0'" You must also change the default file context files on the system in order to preserve them even on a full relabel. "semanage fcontext -a -t textrel_shlib_t '/usr/lib/libmythswscale-0.22.so.0.22.0'" Fix Command: chcon -t textrel_shlib_t '/usr/lib/libmythswscale-0.22.so.0.22.0' Additional Information: Source Context unconfined_u:system_r:initrc_t:SystemLow Target Context system_u:object_r:lib_t:SystemLow Target Objects /usr/lib/libmythswscale-0.22.so.0.22.0 [ file ] Source mythbackend Source Path /usr/bin/mythbackend Port <Unknown> Host backend.boobtube.net Source RPM Packages mythtv-backend-0.22-1.fc11 Target RPM Packages libmyth-0.22-1.fc11 Policy RPM selinux-policy-3.6.12-86.fc11 Selinux Enabled True Policy Type targeted MLS Enabled True Enforcing Mode Enforcing Plugin Name allow_execmod Host Name backend.boobtube.net Platform Linux backend.boobtube.net 2.6.30.9-96.fc11.i686.PAE #1 SMP Tue Nov 3 23:41:33 EST 2009 i686 i686 Alert Count 4 First Seen Mon Nov 16 00:55:20 2009 Last Seen Mon Nov 16 23:08:28 2009 Local ID aa875da1-29cc-49f3-8520-0c292ff233e8 Line Numbers Raw Audit Messages node=backend.boobtube.net type=AVC msg=audit(1258438108.40:46567): avc: denied { execmod } for pid=5195 comm="mythbackend" path="/usr/lib/libmythswscale-0.22.so.0.22.0" dev=sda2 ino=11239870 scontext=unconfined_u:system_r:initrc_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file node=backend.boobtube.net type=SYSCALL msg=audit(1258438108.40:46567): arch=40000003 syscall=125 success=no exit=-13 a0=c49000 a1=35000 a2=5 a3=bfe29950 items=0 ppid=5194 pid=5195 auid=502 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=465 comm="mythbackend" exe="/usr/bin/mythbackend" subj=unconfined_u:system_r:initrc_t:s0 key=(null) I did as it asks for libmythswscale. The same selinux problem then occurred with libmythavutil-0.22.so.0. Is the text relocation business a deprecated practice? Or does the package postinstall just need to include the required chcons?