Bug 108420 - Make automount a PIE
Make automount a PIE
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: autofs (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeffrey Moyer
Brock Organ
: FutureFeature
Depends On:
Blocks: 107774
  Show dependency treegraph
 
Reported: 2003-10-29 04:06 EST by Ulrich Drepper
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 4.1.3-8
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-09-01 03:14:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Minimal patch to build as PIE (622 bytes, patch)
2003-10-29 04:09 EST, Ulrich Drepper
no flags Details | Diff

  None (edit)
Description Ulrich Drepper 2003-10-29 04:06:28 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031028
Firebird/0.7+

Description of problem:
automount is long running.  A good candidate for PIE.  I'll attach a patch.

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

How reproducible:
Always

Steps to Reproduce:
1.readelf -h /usr/sbin/automount|fgrep Type
2.
3.
    

Actual Results:    Type:                              EXEC (Executable file)


Expected Results:    Type:                              DYN (Shared object file)


Additional info:
Comment 1 Ulrich Drepper 2003-10-29 04:09:59 EST
Created attachment 95572 [details]
Minimal patch to build as PIE
Comment 2 Jeffrey Moyer 2004-03-22 14:58:12 EST
I've taken your patch and ported it to the 4.1.1 code base.  In order
to push this upstream, I'd have to have some test to see whether the
compiler supports pie.  What is the best way to do so?
Comment 3 Ulrich Drepper 2004-03-22 16:03:12 EST
I don't have an old compiler at hand but running a simple compile test
in gcc with -fpie -pie on the command line shoud do.

Write a configure test which temporarily adds -fpie to CFLAGS and -pie
to LDFLAGS and then compile and link a dummy program.   Should be
perhaps 10 lines of autoconf code.

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