Bug 727307

Summary: Request to recompile libraries with -Wl,-z,relro flags
Product: Red Hat Enterprise Linux 6 Reporter: Irina Boverman <iboverma>
Component: attrAssignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: azelinka, jscotka, ovasik, pkovar, sgrubb
Target Milestone: rcKeywords: EasyFix, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Prior to this update, the attr library was built without support for read-only relocations (RELRO) flags. With this update, the library is now built with partial RELRO support.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-07 09:07:19 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 727296, 584498, 846801, 846802    

Comment 1 Kamil Dudka 2011-08-01 15:34:21 EDT
This would be the fix:

Index: attr.spec
===================================================================
RCS file: /cvs/dist/rpms/attr/RHEL-6/attr.spec,v
retrieving revision 1.37
diff -u -p -r1.37 attr.spec
--- attr.spec 27 Jun 2011 16:11:30 -0000  1.37
+++ attr.spec 1 Aug 2011 19:31:25 -0000
@@ -95,7 +95,7 @@ autoconf

 %build
 # attr abuses libexecdir
-%configure --libdir=/%{_lib} --libexecdir=%{_libdir}
+%configure --libdir=/%{_lib} --libexecdir=%{_libdir} LDFLAGS="$LDFLAGS -Wl,-z,relro"
 make LIBTOOL="libtool --tag=CC"

 %check
Comment 11 Petr Kovar 2011-09-06 10:41:59 EDT
    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, the attr library was built without support for read-only relocations (RELRO) flags. With this update, the library is now built with partial RELRO support.
Comment 12 errata-xmlrpc 2011-09-07 09:07:19 EDT
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-1272.html