security: Constify sk in the sk_getsecid hook.
authorGuillaume Nault <gnault@redhat.com>
Tue, 11 Jul 2023 13:06:08 +0000 (15:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 07:27:33 +0000 (08:27 +0100)
commit5b52ad34f9487b2c2d1e60fe37e5bd5656b4dac8
tree8ab0e8d94ab54af6904da1725cb26775ada6f727
parentdef3833fc6022c7f23bd4fd66ba5ed65c6b23272
security: Constify sk in the sk_getsecid hook.

The sk_getsecid hook shouldn't need to modify its socket argument.
Make it const so that callers of security_sk_classify_flow() can use a
const struct sock *.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/lsm_hook_defs.h
include/linux/security.h
security/security.c
security/selinux/hooks.c