diff options
author | Wedson Almeida Filho <walmeida@microsoft.com> | 2023-09-30 08:00:20 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-09 17:24:19 +0300 |
commit | ea780283e2c04517ff2e9cdebd0257108aa7f72d (patch) | |
tree | 20f79b303c35d750043671832fd3cdf1ae1b98fa /fs/jfs/xattr.c | |
parent | 13a75c3abcbed217e2edaf8c760e603b3f994a04 (diff) | |
download | linux-ea780283e2c04517ff2e9cdebd0257108aa7f72d.tar.xz |
jfs: move jfs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to
jfs_xattr_handlers at runtime.
Cc: Dave Kleikamp <shaggy@kernel.org>
Cc: jfs-discussion@lists.sourceforge.net
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-17-wedsonaf@gmail.com
Reviewed-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/jfs/xattr.c')
-rw-r--r-- | fs/jfs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index 8577ad494e05..0fb7afac298e 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c @@ -985,7 +985,7 @@ static const struct xattr_handler jfs_trusted_xattr_handler = { .set = jfs_xattr_set, }; -const struct xattr_handler *jfs_xattr_handlers[] = { +const struct xattr_handler * const jfs_xattr_handlers[] = { &jfs_os2_xattr_handler, &jfs_user_xattr_handler, &jfs_security_xattr_handler, |