aboutsummaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorWedson Almeida Filho <[email protected]>2023-09-30 05:00:33 +0000
committerChristian Brauner <[email protected]>2023-10-10 11:49:21 +0000
commit295d3c441226d004d1ed59c4fcf62d5dba18d9e1 (patch)
tree1ceab23bc4e18cf7cc40c84268b12e45263579e2 /net/socket.c
parentshmem: move shmem_xattr_handlers to .rodata (diff)
downloadkernel-295d3c441226d004d1ed59c4fcf62d5dba18d9e1.tar.gz
kernel-295d3c441226d004d1ed59c4fcf62d5dba18d9e1.zip
net: move sockfs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to sockfs_xattr_handlers at runtime. Cc: "David S. Miller" <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: Richard Cochran <[email protected]> Cc: [email protected] Signed-off-by: Wedson Almeida Filho <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/socket.c')
-rw-r--r--net/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index c8b08b32f097..be301d523679 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -403,7 +403,7 @@ static const struct xattr_handler sockfs_security_xattr_handler = {
.set = sockfs_security_xattr_set,
};
-static const struct xattr_handler *sockfs_xattr_handlers[] = {
+static const struct xattr_handler * const sockfs_xattr_handlers[] = {
&sockfs_xattr_handler,
&sockfs_security_xattr_handler,
NULL