[apparmor] [PATCH] tests: Use ldconfig for library detection in Makefile
Steve Beattie
steve at nxnw.org
Thu Oct 31 23:31:29 UTC 2013
On Thu, Oct 31, 2013 at 04:17:26PM -0700, Tyler Hicks wrote:
> The multiarch filesystem layout for Ubuntu uses directories such as
> /usr/lib/{i386-linux-gnu,x86_64-linux-gnu,arm-linux-gnueabihf} so
> peeking into /usr/{lib,lib64} is no longer sufficient.
>
> This patch uses ldconfig to print out the libraries that it knows about
> and grep that output for libapparmor.so or libimmunix.so.
>
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
I'm okay with this patch, particularly the ldconfig usage
(so Acked-by: Steve Beattie <steve at nxnw.org>); however,
libimmunix has been deprecated for over 5 years (see
libraries/libapparmor/src/libimmunix_warning.c) so realistically,
the fallback code that attempts to use libimmunix can just die.
My eventual goal is to have the regression tests support being built
against and using either the in-tree libapparmor+parser or the host
system's libapparmor+parser.
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20131031/e0a73c72/attachment.pgp>
More information about the AppArmor
mailing list