The LSM framework is maintained as a patch to the Linux kernel. The source code is freely available from http://lsm.immunix.org.