[Apparmor-general] module compilation problems - missing mnt_namespace.h - apparmor 2.0.1 + debian etch + kernel 2.6.18

Adrian Gruntkowski adrian at ima.pl
Wed Apr 18 16:15:35 MDT 2007


> On Wed, Apr 18, 2007 at 10:05:01PM +0200, Adrian Gruntkowski wrote:
>> Hello,

> Hello :)

>> I'm trying to compile apparmor module on Debian Etch using Ubuntu
>> Feisty packages by Magnus Runesson. I've downloaded set of patches for
>> kernel from forge.novell.com, and applied 2.6.18.8 set to kernel
>> source from debian's repo - no problems occured during patching.

> ...

>> I did some search, and I've found that this mnt_namespace.h is present
>> in vanilla kernel since 2.6.20 or so... Took a look on
>> apparmor-external-module on novell.sourceforge.com - this one also
>> requires mnt_namespace.h.
>> Does it mean that I can't compile apparmor module on 2.6.18?

> It does mean that you cannot use our newer AppArmor modules on 2.6.18.8.
> Older snapshots should work:

> http://developer.novell.com/wiki/index.php/Special:Downloads/apparmor/Development~~~-~~~March~~~07~~~-~~~SnapShot/apparmor-kernel-patches-2.6.16-to-2.6.20.tar.gz

> http://tinyurl.com/2q46w6

> If you're more inclined to run kernel.org kernels, we have newer code
> here:
> http://developer.novell.com/wiki/index.php/Special:Downloads/apparmor/LKML_Submission-April_07/

> http://tinyurl.com/2mtheo

> I hope this helps.


Thank you all for very quick response. I feel a bit stupid, just realized that module was
actually compiled in after applying patch to kernel :)

However, when I try to do modprobe on apparmor, it fails with following message in dmesg:

--------------

apparmor: Unknown symbol audit_log_vformat
apparmor: Unknown symbol namespace_sem

--------------

Any ideas?

Greetings,
adrian at ima.pl
Adrian Gruntkowski




More information about the Apparmor-general mailing list