summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/xattr.c
diff options
context:
space:
mode:
authorWedson Almeida Filho <walmeida@microsoft.com>2023-09-30 07:00:18 +0200
committerChristian Brauner <brauner@kernel.org>2023-10-09 16:24:19 +0200
commit2c323f2c565078557d09768a4ee654ea3f139285 (patch)
tree5fd5f14b43cebd2d2125079e6465e7dfc83d6c1f /fs/hfsplus/xattr.c
parenthfs: move hfs_xattr_handlers to .rodata (diff)
downloadlinux-2c323f2c565078557d09768a4ee654ea3f139285.tar.xz
linux-2c323f2c565078557d09768a4ee654ea3f139285.zip
hfsplus: move hfsplus_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to hfsplus_xattr_handlers at runtime. Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-15-wedsonaf@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/hfsplus/xattr.c')
-rw-r--r--fs/hfsplus/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c
index 58021e73c00b..9c9ff6b8c6f7 100644
--- a/fs/hfsplus/xattr.c
+++ b/fs/hfsplus/xattr.c
@@ -13,7 +13,7 @@
static int hfsplus_removexattr(struct inode *inode, const char *name);
-const struct xattr_handler *hfsplus_xattr_handlers[] = {
+const struct xattr_handler * const hfsplus_xattr_handlers[] = {
&hfsplus_xattr_osx_handler,
&hfsplus_xattr_user_handler,
&hfsplus_xattr_trusted_handler,