xref: /OK3568_Linux_fs/kernel/Documentation/security/lsm-development.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun=================================
2*4882a593SmuzhiyunLinux Security Module Development
3*4882a593Smuzhiyun=================================
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunBased on https://lkml.org/lkml/2007/10/26/215,
6*4882a593Smuzhiyuna new LSM is accepted into the kernel when its intent (a description of
7*4882a593Smuzhiyunwhat it tries to protect against and in what cases one would expect to
8*4882a593Smuzhiyunuse it) has been appropriately documented in ``Documentation/admin-guide/LSM/``.
9*4882a593SmuzhiyunThis allows an LSM's code to be easily compared to its goals, and so
10*4882a593Smuzhiyunthat end users and distros can make a more informed decision about which
11*4882a593SmuzhiyunLSMs suit their requirements.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunFor extensive documentation on the available LSM hook interfaces, please
14*4882a593Smuzhiyunsee ``include/linux/lsm_hooks.h`` and associated structures:
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun.. kernel-doc:: include/linux/lsm_hooks.h
17*4882a593Smuzhiyun   :internal:
18