Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=955179
Bug ID: 955179 Summary: Canna package should be built with PIE flags Product: Fedora Version: 19 Component: Canna Severity: unspecified Priority: unspecified Assignee: tagoh@redhat.com Reporter: dkholia@redhat.com QA Contact: extras-qa@fedoraproject.org CC: i18n-bugs@lists.fedoraproject.org, tagoh@redhat.com Category: ---
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 Canna 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):
Canna-3.7p3-38.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 Canna-3.7p3-38.fc19.x86_64.rpm Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/canlisp,NX=Enabled,CANARY=Disabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=NA,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/cannacheck,NX=Enabled,CANARY=Disabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=NA,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/cannaping,NX=Enabled,CANARY=Disabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=NA,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/cannastat,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/catdic,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/chkconc,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/crfreq,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/crxdic,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=network-local Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/crxgram,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/cshost,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=NA,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/ctow,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/dicar,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/dpromdic,NX=Enabled,CANARY=Disabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=NA,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/dpxdic,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/forcpp,NX=Enabled,CANARY=Disabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=NA,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/forsort,NX=Enabled,CANARY=Disabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=NA,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/kpdic,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/mergeword,NX=Enabled,CANARY=Disabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/splitword,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/bin/wtoc,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=None Canna,Canna-3.7p3-38.fc19.x86_64.rpm,/usr/sbin/cannaserver,NX=Enabled,CANARY=Enabled,RELRO=Partial,PIE=Disabled,RPATH=Disabled,RUNPATH=Disabled,FORTIFY=Enabled,CATEGORY=network-ip
https://bugzilla.redhat.com/show_bug.cgi?id=955179
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dkholia@redhat.com Flags| |needinfo?(dkholia@redhat.co | |m)
--- Comment #1 from Akira TAGOH tagoh@redhat.com --- I have no idea how to build them with PIE enabled. adding "%global _hardened_build 1" seems not help in this case.
https://bugzilla.redhat.com/show_bug.cgi?id=955179
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
https://bugzilla.redhat.com/show_bug.cgi?id=955179
Dhiru Kholia dkholia@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(dkholia@redhat.co | |m) |
--- Comment #2 from Dhiru Kholia dkholia@redhat.com --- Created attachment 755304 --> https://bugzilla.redhat.com/attachment.cgi?id=755304&action=edit this should enable PIE
https://bugzilla.redhat.com/show_bug.cgi?id=955179
--- Comment #3 from Dhiru Kholia dkholia@redhat.com --- Hi Akira,
Can you please test the attached modified .SPEC file?
https://bugzilla.redhat.com/show_bug.cgi?id=955179
--- Comment #4 from Akira TAGOH tagoh@redhat.com --- Thanks! that works fine.
https://bugzilla.redhat.com/show_bug.cgi?id=955179
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=955179
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- Canna-3.7p3-39.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/Canna-3.7p3-39.fc19
https://bugzilla.redhat.com/show_bug.cgi?id=955179
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- Package Canna-3.7p3-39.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 Canna-3.7p3-39.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-9913/Canna-3.7p3-39.fc19 then log in and leave karma (feedback).
https://bugzilla.redhat.com/show_bug.cgi?id=955179
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |Canna-3.7p3-39.fc19 Resolution|--- |ERRATA Last Closed| |2013-06-11 23:29:57
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- Canna-3.7p3-39.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
i18n-bugs@lists.fedoraproject.org