Bug 1037725

Summary: pam_pkcs11: compile with fortify hardening
Product: Red Hat Enterprise Linux 7 Reporter: Florian Weimer <fweimer>
Component: pam_pkcs11Assignee: Bob Relyea <rrelyea>
Status: CLOSED ERRATA QA Contact: Asha Akkiangady <aakkiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jgalipea, rpattath
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pam_pkcs11-0.6.2-14.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 11:05:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1037724, 1040467    

Description Florian Weimer 2013-12-03 16:39:49 UTC
The spec file explicitly specifies -O0, so parts of -D_FORTIFY_SOURCE=2 are not effective:

make CFLAGS="$RPM_OPT_FLAGS -O0 -ggdb3" 

-ggdb3 is probably outdated as well.

Comment 3 Roshni 2014-10-31 20:52:29 UTC
Verified by checking the spec file of pam_pkcs11-0.6.2-18.el7.src.rpm

spec file does not have
make CFLAGS="$RPM_OPT_FLAGS -O0 -ggdb3" 

instead has 
make CFLAGS="$RPM_OPT_FLAGS"

Comment 5 errata-xmlrpc 2015-03-05 11:05:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0507.html