Skip to content

Commit 6d2ed65

Browse files
rddunlappcmoore
authored andcommitted
lsm: move hook comments docs to security/security.c
Fix one kernel-doc warning, but invesigating that led to other kernel-doc movement (lsm_hooks.h to security.c) that needs to be fixed also. include/linux/lsm_hooks.h:1: warning: no structured comments found Fixes: e261301 ("lsm: move the remaining LSM hook comments to security/security.c") Fixes: 1cd2aca ("lsm: move the io_uring hook comments to security/security.c") Fixes: 452b670 ("lsm: move the perf hook comments to security/security.c") Fixes: 55e8532 ("lsm: move the bpf hook comments to security/security.c") Fixes: b14faf9 ("lsm: move the audit hook comments to security/security.c") Fixes: 1427ddb ("lsm: move the binder hook comments to security/security.c") Fixes: 43fad28 ("lsm: move the sysv hook comments to security/security.c") Fixes: ecc419a ("lsm: move the key hook comments to security/security.c") Fixes: 742b994 ("lsm: move the xfrm hook comments to security/security.c") Fixes: ac318ae ("lsm: move the Infiniband hook comments to security/security.c") Fixes: 4a49f59 ("lsm: move the SCTP hook comments to security/security.c") Fixes: 6b6bbe8 ("lsm: move the socket hook comments to security/security.c") Fixes: 2c2442f ("lsm: move the AF_UNIX hook comments to security/security.c") Fixes: 2bcf51b ("lsm: move the netlink hook comments to security/security.c") Fixes: 130c53b ("lsm: move the task hook comments to security/security.c") Fixes: a0fd648 ("lsm: move the file hook comments to security/security.c") Fixes: 9348944 ("lsm: move the kernfs hook comments to security/security.c") Fixes: 916e325 ("lsm: move the inode hook comments to security/security.c") Fixes: 08526a9 ("lsm: move the filesystem hook comments to security/security.c") Fixes: 36819f1 ("lsm: move the fs_context hook comments to security/security.c") Fixes: 1661372 ("lsm: move the program execution hook comments to security/security.c") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Paul Moore <paul@paul-moore.com> Cc: James Morris <jmorris@namei.org> Cc: "Serge E. Hallyn" <serge@hallyn.com> Cc: linux-security-module@vger.kernel.org Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Cc: KP Singh <kpsingh@kernel.org> Cc: bpf@vger.kernel.org Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent d82dcd9 commit 6d2ed65

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Documentation/bpf/prog_lsm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LSM hook:
1818
.. c:function:: int file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot);
1919
2020
Other LSM hooks which can be instrumented can be found in
21-
``include/linux/lsm_hooks.h``.
21+
``security/security.c``.
2222
2323
eBPF programs that use Documentation/bpf/btf.rst do not need to include kernel
2424
headers for accessing information from the attached eBPF program's context.

Documentation/security/lsm-development.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ that end users and distros can make a more informed decision about which
1111
LSMs suit their requirements.
1212

1313
For extensive documentation on the available LSM hook interfaces, please
14-
see ``include/linux/lsm_hooks.h`` and associated structures:
14+
see ``security/security.c`` and associated structures:
1515

16-
.. kernel-doc:: include/linux/lsm_hooks.h
17-
:internal:
16+
.. kernel-doc:: security/security.c
17+
:export:

Documentation/security/lsm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ associate these values with real security attributes.
9898
LSM hooks are maintained in lists. A list is maintained for each
9999
hook, and the hooks are called in the order specified by CONFIG_LSM.
100100
Detailed documentation for each hook is
101-
included in the `include/linux/lsm_hooks.h` header file.
101+
included in the `security/security.c` source file.
102102

103103
The LSM framework provides for a close approximation of
104104
general security module stacking. It defines

0 commit comments

Comments
 (0)