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:
*** This bug has been marked as a duplicate of bug 462581 ***