I've managed to build dazuko 2.3.5 against a x86_64 kernel (2.6.18-92.1.22.el5). The only way to build it is to configure it as follows:
./configure --disable-stacking
*** Just issuing "./configure; make" fails with the following errors:
In file included from /root/dazuko/dazuko-2.3.5/dazuko_linux26_lsm.c:23: /root/dazuko/dazuko-2.3.5/dazuko_linux26_lsm.h:759: warning: initialization from incompatible pointer type /root/dazuko/dazuko-2.3.5/dazuko_linux26_lsm.c: In function 'dazuko_security_file_mmap':
/root/dazuko/dazuko-2.3.5/dazuko_linux26_lsm.c:828: error: too many arguments to function 'dazuko_security_ops.file_mmap' /root/dazuko/dazuko-2.3.5/dazuko_linux26_lsm.c:828: error: too many arguments to function 'dazuko_security_default_ops.file_mmap'
***
As for kernel, the only change to the config was to put capabilities as a module and then recompile the kernel using rpmbuild (special options: --with baseonly).
So far, so good but I ran into another problem. Since the stacking is now disabled I can't load "capability" module anymore and therefore three services are not running: avahi,dbus and hal.
I guess there are all linked with "libcap" and since capability and dazuko are now mutually exclusive I have to choose between using dazuko or having the services up and running.
The question that raises:
Is there any method/patch to compile dazuko with stacking so I can have all the services running and dazuko loaded in the same time?