I've compiled linux-IMA on a 2.6.22 kernel previously and everything was OK.
Patching on the newer kernel (126.96.36.199) was ok, but compile fails:
security/ima/ima_init.c: In function 'ima_measure_init':
security/ima/ima_init.c 159: error: implicit declaration of function 'unregister_security'
make: *** [security/ima/ima_init.o] Error 1
make: *** [security/ima] Error 2
I'm out of luck, or this IMA patch doens't work on this kernel?