Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 108420 - Make automount a PIE
Make automount a PIE
Product: Fedora
Classification: Fedora
Component: autofs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff 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:
Last Closed: 2004-09-01 03:14:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

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):

How reproducible:

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

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 Jeff 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.