Bug 638848 - f77's selinux context not correct in compat-gcc-34
Summary: f77's selinux context not correct in compat-gcc-34
Keywords:
Status: CLOSED DUPLICATE of bug 462581
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: compat-gcc-34
Version: 5.5
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-30 06:50 UTC by Xiaohong Wang
Modified: 2011-05-13 12:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-30 07:07:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xiaohong Wang 2010-09-30 06:50:49 UTC
Description of problem:

In kdebase errata testing, I found some selinux errors of gcc,
it's casued by the selinux label not correct of /usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771

Version-Release number of selected component (if applicable):
compat-gcc-34-g77-3.4.6-4.ia64


How reproducible:
100%

Steps to Reproduce:
.live.[root@ia64-5s-m2 ~]# rpm -V  compat-gcc-34-g77
.live.[root@ia64-5s-m2 ~]# rpm -ql compat-gcc-34-g77
/usr/bin/f77
/usr/bin/g77
/usr/lib/gcc
/usr/lib/gcc/ia64-redhat-linux
/usr/lib/gcc/ia64-redhat-linux/3.4.6
/usr/lib/gcc/ia64-redhat-linux/3.4.6/include
/usr/lib/gcc/ia64-redhat-linux/3.4.6/include/g2c.h
/usr/lib/gcc/ia64-redhat-linux/3.4.6/libfrtbegin.a
/usr/lib/gcc/ia64-redhat-linux/3.4.6/libg2c.a
/usr/lib/gcc/ia64-redhat-linux/3.4.6/libg2c.so
/usr/libexec/gcc
/usr/libexec/gcc/ia64-redhat-linux
/usr/libexec/gcc/ia64-redhat-linux/3.4.6
/usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771
/usr/share/doc/compat-gcc-34-g77-3.4.6
/usr/share/doc/compat-gcc-34-g77-3.4.6/ChangeLog
/usr/share/doc/compat-gcc-34-g77-3.4.6/ChangeLog.0
/usr/share/info/g77.info.gz
/usr/share/man/man1/g77.1.gz
.live.[root@ia64-5s-m2 ~]# /usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771
/usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771: error while loading shared libraries: cannot restore segment prot after reloc: Permission denied
.live.[root@ia64-5s-m2 ~]# ll -Z /usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771
-rwxr-xr-x  root root system_u:object_r:bin_t          /usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771
.live.[root@ia64-5s-m2 ~]# chcon -t textrel_shlib_t /usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771
.live.[root@ia64-5s-m2 ~]# /usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771

.live.[root@ia64-5s-m2 ~]# ll -Z /usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771
-rwxr-xr-x  root root system_u:object_r:textrel_shlib_t /usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771
.live.[root@ia64-5s-m2 ~]# uname -r
2.6.18-194.el5
.live.[root@ia64-5s-m2 ~]# arch
ia64
.live.[root@ia64-5s-m2 ~]# 



Actual results:
/usr/libexec/gcc/ia64-redhat-linux/3.4.6/f771 failed with :
error while loading shared libraries: cannot restore segment prot after reloc: Permission denied

Expected results:
f771 should be run without errors

Additional info:

Comment 1 Jakub Jelinek 2010-09-30 07:07:36 UTC

*** This bug has been marked as a duplicate of bug 462581 ***


Note You need to log in before you can comment on or make changes to this bug.