[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 14:05:01 MDT 2007
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.
After successful compiling of kernel itself (with apparmor support enabled), I've tried
to compile the external module. The result is pasted below:
---------------------------------
# Build the module
/usr/bin/make -C /usr/src/linux-source-2.6.18 KVERS=2.6.18 M=`pwd` \
modules CONFIG_SECURITY_APPARMOR=m APPARMOR_VER=2.0.1+510.dfsg-0ubuntu2+2.6.18-10.00.Custom
make[3]: Entering directory `/usr/src/linux-source-2.6.18'
CC [M] /usr/src/modules/apparmor/main.o
In file included from /usr/src/modules/apparmor/main.c:19:
/usr/src/modules/apparmor/inline.h:13:33: error: linux/mnt_namespace.h: No such file or directory
In file included from /usr/src/modules/apparmor/main.c:19:
/usr/src/modules/apparmor/inline.h: In function ‘__aa_path_begin’:
/usr/src/modules/apparmor/inline.h:326: error: ‘struct task_struct’ has no member named ‘nsproxy’
/usr/src/modules/apparmor/inline.h:327: error: dereferencing pointer to incomplete type
/usr/src/modules/apparmor/inline.h:332: error: ‘namespace_sem’ undeclared (first use in this function)
/usr/src/modules/apparmor/inline.h:332: error: (Each undeclared identifier is reported only once
/usr/src/modules/apparmor/inline.h:332: error: for each function it appears in.)
/usr/src/modules/apparmor/inline.h: In function ‘aa_path_end’:
/usr/src/modules/apparmor/inline.h:355: error: ‘namespace_sem’ undeclared (first use in this function)
/usr/src/modules/apparmor/inline.h: In function ‘aa_path_getname’:
/usr/src/modules/apparmor/inline.h:374: error: dereferencing pointer to incomplete type
/usr/src/modules/apparmor/inline.h:374: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/usr/src/modules/apparmor/inline.h:374: warning: initialization from incompatible pointer type
/usr/src/modules/apparmor/inline.h:374: error: invalid use of undefined type ‘struct vfsmount’
/usr/src/modules/apparmor/inline.h:380: error: dereferencing pointer to incomplete type
----------------------------------
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?
Thanks in advance for any helpful advice...
Greetings,
adrian at ima.pl
Adrian Gruntkowski
More information about the Apparmor-general
mailing list