diff options
author | Wedson Almeida Filho <walmeida@microsoft.com> | 2023-09-30 02:00:26 -0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-10 13:49:19 +0200 |
commit | 29a69055e2e11040437f89e0355979d3d6e77149 (patch) | |
tree | dd1adf67e22c228e38fda6b062e3af000753a250 /fs/reiserfs/xattr.c | |
parent | 2e9440ac07169790df74dcab412a945c2bfb78f2 (diff) |
reiserfs: move reiserfs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to
reiserfs_xattr_handlers at runtime.
Cc: reiserfs-devel@vger.kernel.org
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-23-wedsonaf@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/reiserfs/xattr.c')
-rw-r--r-- | fs/reiserfs/xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index 6000964c2b80..998035a6388e 100644 --- a/fs/reiserfs/xattr.c +++ b/fs/reiserfs/xattr.c @@ -780,7 +780,7 @@ static inline bool reiserfs_posix_acl_list(const char *name, } /* This is the implementation for the xattr plugin infrastructure */ -static inline bool reiserfs_xattr_list(const struct xattr_handler **handlers, +static inline bool reiserfs_xattr_list(const struct xattr_handler * const *handlers, const char *name, struct dentry *dentry) { if (handlers) { @@ -911,7 +911,7 @@ static int create_privroot(struct dentry *dentry) { return 0; } #endif /* Actual operations that are exported to VFS-land */ -const struct xattr_handler *reiserfs_xattr_handlers[] = { +const struct xattr_handler * const reiserfs_xattr_handlers[] = { #ifdef CONFIG_REISERFS_FS_XATTR &reiserfs_xattr_user_handler, &reiserfs_xattr_trusted_handler, |