[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 18:09:07 MDT 2007


> On Thu, Apr 19, 2007 at 12:45:53AM +0200, Adrian Gruntkowski wrote:
>> > On Thu, Apr 19, 2007 at 12:15:35AM +0200, Adrian Gruntkowski wrote:
>> >> 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 :)
>> 
>> > Cool.
>> 
>> >> 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
>> 
>> > You also need to apply the apparmor_namespacesem.patch and
>> > apparmor_audit.patch to export these symbols. It's included in
>> > apparmor-kernel-patches* tarball, along with the KBuild patch
>> > apparmor_security.patch and apparmor-2.6.18.8-v405.diff.
>> 
>> > Apply them all in the order listed in the series.conf file, and you
>> > should be good to go. :)
>> 
>> > Hope this helps
>> 
>> 
>> I did compile it with all the patches applied (using fullseries patch -
>> just checked the kernel source - changes were done before compiling).
>> I don't get it :(
>> 
> strange the patches do export those symbols.  Can you try with this
> updated patch it uses the most recent version of the module.


Ok, my fault again - I recompiled patched kernel but moved only
apparmor modules to the existing one without swapping the image itself...

There are still some problems with the module though. Doing modprobe results
in following message:

-----------------------------
FATAL: Error inserting apparmor (/lib/modules/2.6.18/kernel/security/apparmor/apparmor.ko): Resource temporarily unavailable
-----------------------------

and dmesg output is as follows:

-----------------------------
AppArmor: Unable to load AppArmor
-----------------------------

Am I missing again something? It's 2 a.m.






More information about the Apparmor-general mailing list