ubifs: move ubifs_xattr_handlers to .rodata
authorWedson Almeida Filho <walmeida@microsoft.com>
Sat, 30 Sep 2023 05:00:29 +0000 (02:00 -0300)
committerChristian Brauner <brauner@kernel.org>
Tue, 10 Oct 2023 11:49:20 +0000 (13:49 +0200)
commitc25308c326dbc304e6f77df0f8f5989a7825203d
treef73b8e5bd866ed64cf047f130f9232e1f13918b0
parentc08a831c74f040ac332c31ad15254cc7462438bc
ubifs: move ubifs_xattr_handlers to .rodata

This makes it harder for accidental or malicious changes to
ubifs_xattr_handlers at runtime.

Cc: Richard Weinberger <richard@nod.at>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-26-wedsonaf@gmail.com
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ubifs/ubifs.h
fs/ubifs/xattr.c