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