selinux September 2011 archive
Main Archive Page > Month Archives  > selinux archives
selinux: Re: [PATCH v5] Fix includes for userspace tools and lib

Re: [PATCH v5] Fix includes for userspace tools and libraries (and possible security issue)

From: Stephen Smalley <sds_at_nospam>
Date: Thu Sep 15 2011 - 17:16:31 GMT
To: Guido Trentalancia <guido@trentalancia.com>

On Thu, 2011-09-15 at 19:03 +0200, Guido Trentalancia wrote:
> Nope, with original from git.
>
> With my patch everything works all right. Otherwise why did I create the
> patch in the first place ??

I don't know. As I've said, make DESTDIR=~/out install worked fine
until recently, and with Eric's patch 1/2 to fix up the recent breakage
of the libselinux Makefile and my just-posted patch for the sandbox
Makefile, I can once again do a make DESTDIR=~/out install on a system
without the system -devel packages.

> I only forgot to mention the flags that I used:
>
> CFLAGS="-O3 -march=corei7 -mtune=corei7" LIBDIR=/usr/lib64
> SHLIBDIR=/usr/lib64 DESTDIR=/opt/out make install

So it is picking up the wrong libs because you told it to do so by
separately specifying incompatible DESTDIR and LIBDIR/SHLIBDIR
definitions. Either only specify DESTDIR and let it automatically
derive LIBDIR/SHLIBDIR underneath, or specify them all with the same
prefix.

-- Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.