Bug 108165

Summary: Make sshd a PIE
Product: [Fedora] Fedora Reporter: Ulrich Drepper <drepper>
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jakub, mitr, pdemauro, tao
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-21 11:02:23 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 107774    
Description Flags
Minimal patch
Better patch none

Description Ulrich Drepper 2003-10-28 02:56:17 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031021

Description of problem:
Network accessible programs should be PIEs for security reasons.  I'll attach a
minimum patch to make sshd (and none of the other programs) a PIE.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.readelf -h /usr/sbin/sshd|fgrep Type:

Actual Results:    Type:                              EXEC (Executable file)

Expected Results:    Type:                              DYN (Shared object file)

Additional info:
Comment 1 Ulrich Drepper 2003-10-28 02:57:15 EST
Created attachment 95543 [details]
Minimal patch
Comment 2 Ulrich Drepper 2003-10-29 03:47:32 EST
Created attachment 95567 [details]
Better patch

Better use Jakub's patch which also adds various optimizations.
Comment 3 Tomas Mraz 2005-02-04 11:33:52 EST
The minimal patch is maintainable and could/(should?) be applied. The
Jakub's one is highly invasive and it would require too much work when
rebasing to newer versions.
Comment 4 Tomas Mraz 2005-02-21 11:02:23 EST
Sorry ignore my previous comment - currently in rawhide the complete
OpenSSH is already built with PIE. However a question is if the PIE
linkage shouldn't be limited to sshd.