Here are the files for my example LSM. It is the simplest LSM possible.
Studying the Openwall owlsm would be a good idea too. I am including
Config.in and the Makefile so that you can see the changes that were made
in those files. This example compiles against 2.4.17 kernel patched with
lsm-full-2001_12_23-2.4.17.patch which is available on the lsm website
http://lsm.immunix.org/.
Owlsm is included in this patch as well.
Emily Ratliff
IBM Linux Technology Center, Security
512-838-0409 (T/L 678-0409)
emilyr@us.ibm.com