[apparmor] Finding libapparmor.so on Debian
Tyler Hicks
tyhicks at canonical.com
Mon Dec 16 17:30:26 UTC 2013
On 2013-12-16 09:28:50, Tyler Hicks wrote:
> On 2013-12-14 13:12:31, Jeroen Ooms wrote:
> > This is perhaps more of a debian question, but hopefully someone can help.
> > I am using the 'whereis' command in the configure script for the RAppArmor
> > package [1] to detect the location of libapparmor.so to put it in Makevars.
> > I tested this and it worked on Ubuntu, Debian and OpenSuse, until recently.
> >
> > However, a user has brought to my attention that in Debian (testing)
> > Jessie, this no longer works. I tried this on EC2 and I get:
> >
> > root at ip-10-137-12-151:/usr/lib# find / -name 'libapparmor.so'
> > /usr/lib/x86_64-linux-gnu/libapparmor.so
> >
> > Is it correct that the location of libapparmor.so has changed?
>
> Yes - It is caused by multiarch support in newer Debian/Ubuntu
> libapparmor packages.
Here's some more information on multiarch:
http://www.debian.org/doc/manuals/maint-guide/advanced.en.html#multiarch
Tyler
>
> > What would be a better method to use in my configure script to detect
> > the location of libapparmor.so?
>
> I'd suggest ldconfig:
>
> $ ldconfig -p | grep libapparmor\.so
> libapparmor.so.1 (libc6,x86-64) => /usr/lib/libapparmor.so.1
>
> Tyler
> --
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
-------------- 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/20131216/2d7d3aa2/attachment.pgp>
More information about the AppArmor
mailing list