Skip to content

Smack: Use the netlbl incoming cache

Casey Schaufler linux-security-module 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Smack: Consolidate uses of secmark into a functionsecurity/smack/smack_lsm.c+33 -280 replies
2/3Smack: Set socket labels only oncesecurity/smack/smack.h security/smack/smack_lsm.c+98 -890 replies
3/3Smack: Use the netlabel cachesecurity/smack/smack.h security/smack/smack_access.c security/smack/smack_lsm.c +1 more+68 -380 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/3] Smack: Use the netlbl incoming cache

Update the Smack security module to use the Netlabel cache mechanism to speed the processing of incoming labeled packets. There is some refactoring of the existing code that makes it simpler, and reduces duplication. The outbound packet labeling is also optimized to track the labeling state of the socket. Prior to this the socket label was redundantly set on each packet send.

---
 security/smack/smack.h        |  19 ++--
 security/smack/smack_access.c |  55 ++++++----
 security/smack/smack_lsm.c    | 245 ++++++++++++++++++++++++------------------
 security/smack/smackfs.c      |  23 ++--
 4 files changed, 193 insertions(+), 149 deletions(-)