mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
xfs: move xfs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to xfs_xattr_handlers at runtime. Cc: "Darrick J. Wong" <djwong@kernel.org> Cc: linux-xfs@vger.kernel.org Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-27-wedsonaf@gmail.com Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
c25308c326
commit
375aa21d36
@ -175,7 +175,7 @@ static const struct xattr_handler xfs_xattr_security_handler = {
|
||||
.set = xfs_xattr_set,
|
||||
};
|
||||
|
||||
const struct xattr_handler *xfs_xattr_handlers[] = {
|
||||
const struct xattr_handler * const xfs_xattr_handlers[] = {
|
||||
&xfs_xattr_user_handler,
|
||||
&xfs_xattr_trusted_handler,
|
||||
&xfs_xattr_security_handler,
|
||||
|
@ -8,6 +8,6 @@
|
||||
|
||||
int xfs_attr_change(struct xfs_da_args *args);
|
||||
|
||||
extern const struct xattr_handler *xfs_xattr_handlers[];
|
||||
extern const struct xattr_handler * const xfs_xattr_handlers[];
|
||||
|
||||
#endif /* __XFS_XATTR_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user