xfs: move xfs_xattr_handlers to .rodata
authorWedson Almeida Filho <walmeida@microsoft.com>
Sat, 30 Sep 2023 05:00:30 +0000 (02:00 -0300)
committerChristian Brauner <brauner@kernel.org>
Tue, 10 Oct 2023 11:49:20 +0000 (13:49 +0200)
commit375aa21d36ee8ea19a370da9d38fedcb50ec34d3
treededeb10d7628aa584f644eb0c3091e95ecb6d7a8
parentc25308c326dbc304e6f77df0f8f5989a7825203d
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>
fs/xfs/xfs_xattr.c
fs/xfs/xfs_xattr.h