diff options
author | Wedson Almeida Filho <walmeida@microsoft.com> | 2023-09-30 02:00:17 -0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-09 16:24:19 +0200 |
commit | e27a45b6507083f50781a2c94c5f6618a3b916d5 (patch) | |
tree | 294891413b9e2d455d5ce66c687f80db7ce1eb2a /fs/hfs/attr.c | |
parent | 89491fafa81c7c4e6aeb8f1a21903bc65b77515e (diff) |
hfs: move hfs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to
hfs_xattr_handlers at runtime.
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-14-wedsonaf@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/hfs/attr.c')
-rw-r--r-- | fs/hfs/attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfs/attr.c b/fs/hfs/attr.c index 6341bb248247..f8395cdd1adf 100644 --- a/fs/hfs/attr.c +++ b/fs/hfs/attr.c @@ -146,7 +146,7 @@ static const struct xattr_handler hfs_type_handler = { .set = hfs_xattr_set, }; -const struct xattr_handler *hfs_xattr_handlers[] = { +const struct xattr_handler * const hfs_xattr_handlers[] = { &hfs_creator_handler, &hfs_type_handler, NULL |