Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679782 - sys-apps/coreutils does not respect CFLAGS (stack-protection)
Summary: sys-apps/coreutils does not respect CFLAGS (stack-protection)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-08 16:03 UTC by Agostino Sarubbo
Modified: 2019-03-09 13:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2019-03-08 16:03:15 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 /bin/head (and maybe some other file from this package) has stack protection.
To check the SSP status you can use:
checksec --file /bin/head  (from app-admin/checksec)
hardening-check /bin/head  (from app-admin/hardening-check)
readelf -sW /bin/head | grep "__stack_chk_fail"
Comment 1 Agostino Sarubbo gentoo-dev 2019-03-09 13:47:50 UTC
I'm sorry for the bugspam but this bug comes from a false-positive, more info at https://bugs.gentoo.org/679788#c2