Skip to content

LSM hook updates

Chris Wright lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Use capabilities as default w/ and w/out CONFIG_SECURITY.security/Makefile security/commoncap.c security/dummy.c +1 more+912 -10920 replies
2/5Rework stubs in security.hinclude/linux/security.h+604 -7966 replies
3/5Call security hooks conditionally if the security_op is filled out.include/linux/security.h+411 -4142 replies
4/5Remove unnecessary default capability callbacks.security/commoncap.c security/security.c+17 -8580 replies
5/5Remove unnecesary capability hooks in rootplug.security/root_plug.c+1 -1310 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] LSM hook updates

This is based on Kurt's original work. The net effect is that LSM hooks are called conditionally, and in all cases capabilities provide the defaults. I've done some basic performance testing, and found nothing surprising. I'm interested to see numbers from others before I push this up. These are against Linus' current git tree (they will clash with the -mm tree).

 security/dummy.c         |  996 ----------------------------
 include/linux/security.h | 1665 ++++++++++++++++++++--------------------------- security/Makefile        |    9
 security/commoncap.c     |  160 ++--
 security/root_plug.c     |   14
 security/security.c      |   62 -
 6 files changed, 839 insertions(+), 2067 deletions(-)

thanks,
-chris
--