util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Paul Stone <Paul@stone.org>, util-linux@vger.kernel.org
Subject: Re: how can I compile mount and umount as shared object files?
Date: Mon, 28 Nov 2011 10:01:57 +0100	[thread overview]
Message-ID: <20111128090157.GA29168@nb.net.home> (raw)
In-Reply-To: <201111262010.03052.vapier@gentoo.org>

On Sat, Nov 26, 2011 at 08:10:02PM -0500, Mike Frysinger wrote:
> On Saturday 26 November 2011 19:34:38 Paul Stone wrote:
> > Thanks Mike,
> 
> please don't top post
> 
> > Any idea why they are compiled as PIEs for CentOS (and presumably Red Hat)?
> 
> i vaguely recall that RedHat's policy is to build all set*id and network 
> daemons as PIEs as security precautions.  Karel would probably know more.

 Yes, copy & past from util-linux.spec:

    export SUID_CFLAGS="-fpie"
    export SUID_LDFLAGS="-pie"
    %configure \
      ....

 the SUID_* variable are supported by upstream, see
 Documentation/howto-compilation.txt

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

      reply	other threads:[~2011-11-28  9:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23  0:02 how can I compile mount and umount as shared object files? Paul Stone
2011-11-23 18:58 ` Mike Frysinger
2011-11-27  0:34   ` Paul Stone
2011-11-27  1:10     ` Mike Frysinger
2011-11-28  9:01       ` Karel Zak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111128090157.GA29168@nb.net.home \
    --to=kzak@redhat.com \
    --cc=Paul@stone.org \
    --cc=util-linux@vger.kernel.org \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).