Skip to content

Move LSM hook comments into security/security.c

Paul Moore linux-security-module 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22lsm: move the program execution hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+69 -520 replies
2/22lsm: move the fs_context hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+23 -170 replies
3/22lsm: move the filesystem hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+181 -1060 replies
4/22lsm: move the inode hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+524 -3030 replies
5/22lsm: move the kernfs hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+10 -90 replies
6/22lsm: move the file hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+151 -1040 replies
7/22lsm: move the task hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+334 -2100 replies
8/22lsm: move the netlink hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+13 -130 replies
9/22lsm: move the AF_UNIX hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+41 -270 replies
10/22lsm: move the socket hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+322 -1910 replies
11/22lsm: move the SCTP hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+43 -330 replies
12/22lsm: move the Infiniband hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+34 -220 replies
13/22lsm: move the xfrm hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+103 -730 replies
14/22lsm: move the key hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+40 -320 replies
15/22lsm: move the sysv hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+191 -1410 replies
16/22lsm: move the binder hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+36 -220 replies
17/22lsm: move the audit hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+41 -320 replies
18/22lsm: move the bpf hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+65 -360 replies
19/22lsm: move the perf hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+39 -170 replies
20/22lsm: move the io_uring hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+26 -170 replies
21/22lsm: move the remaining LSM hook comments to security/security.cinclude/linux/lsm_hooks.h security/security.c+231 -1680 replies
22/22lsm: styling fixes to security/security.csecurity/security.c+99 -850 replies

Reviews trailers per patch

None of the 22 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCasey Schaufler
SeriesA-b
1/22
2/22
3/22
4/22
5/22
6/22
7/22
8/22
9/22
10/22
11/22
12/22
13/22
14/22
15/22
16/22
17/22
18/22
19/22
20/22
21/22
22/22

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/22] Move LSM hook comments into security/security.c

Hello all,

The LSM hook comment blocks are a in a rather sad state; separated from the hook definitions they are often out of mind, and as a result most of them are in varying levels of bit-rot, some severely. This patchset moves all of the comment blocks out of lsm_hooks.c and onto the top of the function definitions as one would normally expect. In the process of moving the comment blocks, they have been massaged into the standard kernel-doc format for the sake of consistency and easier reading. Unfortunately, correcting all of the errors in the comments would have made an extremely long and painful task even worse, so a number of errors remain, but the worst offenders were corrected in the move. Now that the comments are in the proper location, and in the proper format, my hope is that future patch submissions correcting the actual comment contents will be much easier and the comments as a whole will be easier to maintain.

There are no code changes in this patchset, although since I was already adding a lot of churn to security.c, the last patch in this patchset (22/22) does take the liberty of fixing some rather ugly style problems.

 include/linux/lsm_hooks.h | 1624 +++++++++++++++++++++
 security/security.c       | 2702 +---------------------------------------
 2 files changed, 1710 insertions(+), 2616 deletions(-)