summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3/xattr.c
diff options
context:
space:
mode:
authorWedson Almeida Filho <walmeida@microsoft.com>2023-09-30 07:00:23 +0200
committerChristian Brauner <brauner@kernel.org>2023-10-09 16:24:20 +0200
commit5bf1dd9441da8f02ce2082c246327f927836b8ff (patch)
treeff25339a80e8f025dd1363357fcd8a8268c04d5c /fs/ntfs3/xattr.c
parentnfs: move nfs4_xattr_handlers to .rodata (diff)
downloadlinux-5bf1dd9441da8f02ce2082c246327f927836b8ff.tar.xz
linux-5bf1dd9441da8f02ce2082c246327f927836b8ff.zip
ntfs3: move ntfs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to ntfs_xattr_handlers at runtime. Cc: Konstantin Komarov <almaz.alexandrovich@paragon-software.com> Cc: ntfs3@lists.linux.dev Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-20-wedsonaf@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to '')
-rw-r--r--fs/ntfs3/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/xattr.c b/fs/ntfs3/xattr.c
index 29fd391899e5..ffe217160d49 100644
--- a/fs/ntfs3/xattr.c
+++ b/fs/ntfs3/xattr.c
@@ -1016,7 +1016,7 @@ static const struct xattr_handler ntfs_other_xattr_handler = {
.list = ntfs_xattr_user_list,
};
-const struct xattr_handler *ntfs_xattr_handlers[] = {
+const struct xattr_handler * const ntfs_xattr_handlers[] = {
&ntfs_other_xattr_handler,
NULL,
};