[apparmor] Finding libapparmor.so on Debian
Tyler Hicks
tyhicks at canonical.com
Mon Dec 16 17:28:50 UTC 2013
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.
> 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
-------------- 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/2cc05660/attachment.pgp>
More information about the AppArmor
mailing list