Bug 853155 - setuid programs should be compiled with PIE flags
Summary: setuid programs should be compiled with PIE flags
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: polkit
Version: 18
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 962005
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-30 15:41 UTC by Steve Grubb
Modified: 2013-09-18 20:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-18 20:02:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Steve Grubb 2012-08-30 15:41:35 UTC
Description of problem:
pkexec, polkit-agent-helper-1, and polkitd are not compiled with gcc's PIE security flag. All setuid, network, and daemon programs should have PIE enabled so that each invocation has new ASLR. Additionally, daemons and setuid programs should have full RELRO and not partial.

FILE                                                TYPE        RELRO    PIE 
/usr/bin/pkexec                                     setuid      partial  no  
/usr/lib/polkit-1/polkit-agent-helper-1             setuid      partial  no  
/usr/lib/polkit-1/polkitd                           daemon      partial  no

You can use this test program to check dbus:
http://people.redhat.com/sgrubb/files/rpm-chksec

Comment 1 Fedora Admin XMLRPC Client 2013-02-01 23:59:24 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Steve Grubb 2013-03-07 16:46:56 UTC
Checking to see if there is any progress on updating the compile flags? We'd like to close the bug if its fixed. Thanks.

Comment 3 Miloslav Trmač 2013-03-11 14:22:16 UTC
Per changelog and rpm-chksec, polkit is currently built with PIE and full relro; I'll keep this report open to review the unusual way it's been enabled (not using %_hardened_build).

Comment 4 Matthias Clasen 2013-03-13 17:32:31 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=892837 for that

Comment 5 Steve Grubb 2013-03-14 16:04:21 UTC
Removing from CC tracker because its fixed as far as we are concerned.

Comment 6 Miloslav Trmač 2013-05-10 22:40:20 UTC
Cause tracked down to bug 962005.

Comment 7 Miloslav Trmač 2013-09-18 20:02:15 UTC
... and fixed for F18 in polkit-0.107-6.fc18 (not attached into the bodhi ticket, but will be published as an update eventually).


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