Skip to content

net: Mark the sk parameter of routing functions as 'const'.

Guillaume Nault linux-security-module netdev selinux 1 version Applied

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

  1. v1 Latest4 patches 8 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4security: Constify sk in the sk_getsecid hook.include/linux/lsm_hook_defs.h include/linux/security.h security/security.c +1 more+7 -63 repliesApplied
2/4ipv4: Constify the sk parameter of ip_route_output_*().include/net/route.h+3 -32 repliesApplied
3/4ipv6: Constify the sk parameter of several helper functions.include/linux/icmpv6.h net/ipv6/datagram.c net/ipv6/icmp.c +1 more+13 -182 repliesApplied
4/4pptp: Constify the po parameter of pptp_route_output().drivers/net/ppp/pptp.c+2 -21 replyApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchSimon HormanDavid Ahern
1/4R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b

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 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