Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 679518

Summary: app-crypt/gnupg does not respect CFLAGS (stack-protection)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Kristian Fiskerstrand (RETIRED) <k_f>
Status: RESOLVED INVALID    
Severity: normal CC: crypto+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2019-03-05 11:09:53 UTC
This is an auto-filled bug because this package does not respect user's CFLAGS.

While SSP is really good for security purpose, I'd expect that with CFLAGS="-fno-stack-protector" the package should not have stack protection.
In this case the file /usr/bin/dirmngr (and maybe some other file from this package) has stack protection.
To check the SSP status you can use:
checksec --file /usr/bin/dirmngr  (from app-admin/checksec)
hardening-check /usr/bin/dirmngr  (from app-admin/hardening-check) 
readelf -sW /usr/bin/dirmngr | grep __stack_chk_fail
Comment 1 Agostino Sarubbo gentoo-dev 2019-03-09 13:46:00 UTC
I'm sorry for the bugspam but this bug come from a false-positive, more info at https://bugs.gentoo.org/679788#c2