mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
orangefs: move orangefs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to orangefs_xattr_handlers at runtime. Cc: Mike Marshall <hubcap@omnibond.com> Cc: Martin Brandenburg <martin@omnibond.com> Cc: devel@lists.orangefs.org Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-22-wedsonaf@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
2cba9af99b
commit
2e9440ac07
@ -103,7 +103,7 @@ enum orangefs_vfs_op_states {
|
||||
#define ORANGEFS_CACHE_CREATE_FLAGS 0
|
||||
#endif
|
||||
|
||||
extern const struct xattr_handler *orangefs_xattr_handlers[];
|
||||
extern const struct xattr_handler * const orangefs_xattr_handlers[];
|
||||
|
||||
extern struct posix_acl *orangefs_get_acl(struct inode *inode, int type, bool rcu);
|
||||
extern int orangefs_set_acl(struct mnt_idmap *idmap,
|
||||
|
@ -554,7 +554,7 @@ static const struct xattr_handler orangefs_xattr_default_handler = {
|
||||
.set = orangefs_xattr_set_default,
|
||||
};
|
||||
|
||||
const struct xattr_handler *orangefs_xattr_handlers[] = {
|
||||
const struct xattr_handler * const orangefs_xattr_handlers[] = {
|
||||
&orangefs_xattr_default_handler,
|
||||
NULL
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user