Bug 853193 - daemon programs should be compiled with PIE and full RELRO flags
Summary: daemon programs should be compiled with PIE and full RELRO flags
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: net-tools
Version: 18
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 853068
TreeView+ depends on / blocked
 
Reported: 2012-08-30 17:02 UTC by Steve Grubb
Modified: 2012-09-25 16:39 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-09-25 16:39:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Steve Grubb 2012-08-30 17:02:29 UTC
Description of problem:
Daemon programs should have full RELRO support enabled for extra protection. They should also have gcc's PIE flag enabled, too.

FILE                                                TYPE        RELRO    PIE 
/sbin/arp                                           daemon      partial  no  

You can use this program for testing:
http://people.redhat.com/sgrubb/files/rpm-chksec

Comment 1 Jiri Popelka 2012-09-03 13:15:31 UTC
I don't think /sbin/arp fits into this daemon category.
Yes, it can be run (only if /etc/ethers exists) during boot to load static arp entries from the ethers file.
But as you can see in arp-ethers.service it's a "oneshot" type so it exits immediately after loading the entries.

Have I missed anything or we can close this BZ ?

Comment 2 Steve Grubb 2012-09-05 10:42:23 UTC
This bug was filed to get the flags correct so that we can make claims in our common criteria security target. The intent was that we could say all setuids are compiled with these flags, all daemons are compiled with those, all apps have other flags. We really didn't want to start making exceptions to the blanket policy.

Comment 3 Jiri Popelka 2012-09-05 10:53:17 UTC
My point has been that /sbin/arp is not a deamon nor setuid.

Comment 4 Steve Grubb 2012-09-05 11:07:19 UTC
Its started by a .service file. Which means if we start picking and choosing which ones are daemon and which ones aren't, it gets complicated. I can help you with the patch if you think it's helpful.

Comment 5 Jiri Popelka 2012-09-05 11:43:06 UTC
Ok. Then easiest would be to add these flags to spec file and compile all the tools with PIE and full RELRO flags then modifying Makefile just for arp.

Comment 6 Fedora Update System 2012-09-05 12:10:04 UTC
net-tools-1.60-142.20120702git.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/net-tools-1.60-142.20120702git.fc18

Comment 7 Fedora Update System 2012-09-22 06:32:43 UTC
Package net-tools-1.60-144.20120917git.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing net-tools-1.60-144.20120917git.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13384/net-tools-1.60-144.20120917git.fc18
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-09-25 16:39:11 UTC
net-tools-1.60-144.20120917git.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.