security: add const qualifier to struct sock in various places
authorFlorian Westphal <fw@strlen.de>
Mon, 30 Nov 2020 15:36:29 +0000 (16:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 20:56:03 +0000 (12:56 -0800)
commit41dd9596d6b239a125c3d19f9d0ca90bdbfbf876
treee9f12745deb241b4feaa431938dffcb79b5a6881
parentd4bff72c8401e6f56194ecf455db70ebc22929e2
security: add const qualifier to struct sock in various places

A followup change to tcp_request_sock_op would have to drop the 'const'
qualifier from the 'route_req' function as the
'security_inet_conn_request' call is moved there - and that function
expects a 'struct sock *'.

However, it turns out its also possible to add a const qualifier to
security_inet_conn_request instead.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: James Morris <jamorris@linux.microsoft.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/lsm_audit.h
include/linux/lsm_hook_defs.h
include/linux/security.h
security/apparmor/include/net.h
security/apparmor/lsm.c
security/apparmor/net.c
security/lsm_audit.c
security/security.c
security/selinux/hooks.c
security/smack/smack_lsm.c