Smack: Use the netlbl incoming cache
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Smack: Consolidate uses of secmark into a functionsecurity/ | +33 | 0 replies | |
| 2/3 | Smack: Set socket labels only oncesecurity/ security/ | +98 | 0 replies | |
| 3/3 | Smack: Use the netlabel cachesecurity/ security/ security/ +1 more | +68 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.
Signed-off-by Casey Schaufler <[email protected]>
--- 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(-)