net: Mark the sk parameter of routing functions as 'const'.
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | security: Constify sk in the sk_getsecid hook.include/ include/ security/ +1 more | +7 | 3 replies | Applied |
| 2/4 | ipv4: Constify the sk parameter of ip_route_output_*().include/ | +3 | 2 replies | Applied |
| 3/4 | ipv6: Constify the sk parameter of several helper functions.include/ net/ net/ +1 more | +13 | 2 replies | Applied |
| 4/4 | pptp: Constify the po parameter of pptp_route_output().drivers/ | +2 | 1 reply | Applied |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Simon Horman | David Ahern |
|---|---|---|
| 1/4 | R-b | |
| 2/4 | R-b | R-b |
| 3/4 | R-b | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/4] net: Mark the sk parameter of routing functions as 'const'.
The sk_getsecid security hook prevents the use of a const sk pointer in several routing functions. Since this hook should only read sk data, make its sk argument const (patch 1), then constify the sk parameter of various routing functions (patches 2-4).
Build-tested with make allmodconfig.
Guillaume Nault (4):
security: Constify sk in the sk_getsecid hook.
ipv4: Constify the sk parameter of ip_route_output_*().
ipv6: Constify the sk parameter of several helper functions.
pptp: Constify the po parameter of pptp_route_output().
drivers/net/ppp/pptp.c | 4 ++-- include/linux/icmpv6.h | 10 ++++------ include/linux/lsm_hook_defs.h | 2 +- include/linux/security.h | 5 +++-- include/net/route.h | 6 +++--- net/ipv6/datagram.c | 7 ++++--- net/ipv6/icmp.c | 6 ++---- net/ipv6/mcast.c | 8 +++----- security/security.c | 2 +- security/selinux/hooks.c | 4 ++-- 10 files changed, 25 insertions(+), 29 deletions(-)
Signature · 1 line
2.39.2