summaryrefslogtreecommitdiff
path: root/security/security.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2023-07-14 08:27:33 +0100
committerDavid S. Miller <davem@davemloft.net>2023-07-14 08:27:33 +0100
commitf63cfa103be9b16c4491f1d58bbef3616fc61a92 (patch)
tree17b02304475d9e7bc93574f2225a68d48523c134 /security/security.c
parentdef3833fc6022c7f23bd4fd66ba5ed65c6b23272 (diff)
parentdc4c399d215d76689ebadec7ed3184bcf213e2ee (diff)
Merge branch 'sk-const'
Guillaume Nault says: ==================== 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. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/security.c')
-rw-r--r--security/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/security.c b/security/security.c
index b720424ca37d..2dfc7b9f6ed9 100644
--- a/security/security.c
+++ b/security/security.c
@@ -4396,7 +4396,7 @@ void security_sk_clone(const struct sock *sk, struct sock *newsk)
}
EXPORT_SYMBOL(security_sk_clone);
-void security_sk_classify_flow(struct sock *sk, struct flowi_common *flic)
+void security_sk_classify_flow(const struct sock *sk, struct flowi_common *flic)
{
call_void_hook(sk_getsecid, sk, &flic->flowic_secid);
}