summaryrefslogtreecommitdiff
path: root/include/linux/pseudo_fs.h
diff options
context:
space:
mode:
authorWedson Almeida Filho <walmeida@microsoft.com>2023-09-30 08:00:33 +0300
committerChristian Brauner <brauner@kernel.org>2023-10-10 14:49:21 +0300
commit295d3c441226d004d1ed59c4fcf62d5dba18d9e1 (patch)
tree1ceab23bc4e18cf7cc40c84268b12e45263579e2 /include/linux/pseudo_fs.h
parent2f5028604f08fa9fe40c07295843d6917d9d0a94 (diff)
downloadlinux-295d3c441226d004d1ed59c4fcf62d5dba18d9e1.tar.xz
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" <davem@davemloft.net> Cc: Eric Dumazet <edumazet@google.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Richard Cochran <richardcochran@gmail.com> Cc: netdev@vger.kernel.org Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-30-wedsonaf@gmail.com Acked-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/pseudo_fs.h')
-rw-r--r--include/linux/pseudo_fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pseudo_fs.h b/include/linux/pseudo_fs.h
index eceda1d1407a..730f77381d55 100644
--- a/include/linux/pseudo_fs.h
+++ b/include/linux/pseudo_fs.h
@@ -5,7 +5,7 @@
struct pseudo_fs_context {
const struct super_operations *ops;
- const struct xattr_handler **xattr;
+ const struct xattr_handler * const *xattr;
const struct dentry_operations *dops;
unsigned long magic;
};