Description of problem: http://fedoraproject.org/wiki/Packaging:Guidelines#PIE says that "you MUST enable the PIE compiler flags if your package is long running ...". However, currently haproxy is not being built with PIE flags. This is a clear violation of the packaging guidelines. This issue (in its wider scope) is being discussed at, https://fedorahosted.org/fesco/ticket/1104 https://lists.fedoraproject.org/pipermail/devel/2013-March/180827.html Version-Release number of selected component (if applicable): haproxy-1.4.22-2.fc19.x86_64.rpm How reproducible: You can use following programs to check if a package is hardened: http://people.redhat.com/sgrubb/files/rpm-chksec OR https://github.com/kholia/checksec Steps to Reproduce: Get scanner.py from https://github.com/kholia/checksec $ ./scanner.py haproxy-1.4.22-2.fc19.x86_64.rpm haproxy,haproxy-1.4.22-2.fc19.x86_64.rpm,/usr/bin/halog,NX=Enabled,CANARY=Disabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None haproxy,haproxy-1.4.22-2.fc19.x86_64.rpm,/usr/sbin/haproxy,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=network-ip
Fixed in f19.
haproxy-1.4.23-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/haproxy-1.4.23-2.fc19
Package haproxy-1.4.23-2.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing haproxy-1.4.23-2.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-6253/haproxy-1.4.23-2.fc19 then log in and leave karma (feedback).
haproxy-1.4.23-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
The fixed package is at the following URL, right? http://dl.fedoraproject.org/pub/fedora/linux/development/19/x86_64/os/Packages/h/haproxy-1.4.23-2.fc19.x86_64.rpm If yes, then the problem still exists. (Cmd) analyze haproxy ('http://dl.fedoraproject.org/pub/fedora/linux/development/19/x86_64/os/Packages/h/haproxy-1.4.23-2.fc19.x86_64.rpm', '=>', '/scratch/repos/checksec/data/.cache/haproxy-1.4.23-2.fc19.x86_64.rpm') { "build": "haproxy-1.4.23-2.fc19.x86_64.rpm", "daemon": true, "files": [ { "CANARY": "Disabled", "CATEGORY": "None", "FORTIFY": "Enabled", "NX": "Enabled", "PIE": "Disabled", "RELRO": "Partial", "RPATH": "Disabled", "RUNPATH": "Disabled", "mode": 33261, "name": "/usr/bin/halog", "size": 36736 }, { "CANARY": "Enabled", "CATEGORY": "network-ip", "FORTIFY": "Enabled", "NX": "Enabled", "PIE": "Disabled", "RELRO": "Partial", "RPATH": "Disabled", "RUNPATH": "Disabled", "mode": 33261, "name": "/usr/sbin/haproxy", "size": 409760 } ], "group": "System Environment/Daemons", "package": "haproxy" }
Created attachment 741800 [details] this should enable PIE
Created attachment 741801 [details] this should enable PIE
(In reply to comment #5) > The fixed package is at the following URL, right? > > http://dl.fedoraproject.org/pub/fedora/linux/development/19/x86_64/os/ > Packages/h/haproxy-1.4.23-2.fc19.x86_64.rpm > > If yes, then the problem still exists. I followed the instructions listed in comment #1. Specifically the instructions found here: http://fedoraproject.org/wiki/Packaging:Guidelines#PIE It appears these instructions need to be updated.
Fixed in f19. # ./rpm-chksec haproxy-1.4.23-3.fc19.x86_64.rpm FILE TYPE RELRO PIE /usr/bin/halog exec partial no /usr/sbin/haproxy daemon full yes
haproxy-1.4.23-3.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/haproxy-1.4.23-3.fc19
Package haproxy-1.4.23-3.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing haproxy-1.4.23-3.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-7032/haproxy-1.4.23-3.fc19 then log in and leave karma (feedback).