ext4: move ext4_xattr_handlers to .rodata
authorWedson Almeida Filho <walmeida@microsoft.com>
Sat, 30 Sep 2023 05:00:06 +0000 (02:00 -0300)
committerChristian Brauner <brauner@kernel.org>
Mon, 9 Oct 2023 14:24:16 +0000 (16:24 +0200)
commite60ac12833400296433c450d346f539d662ab4b0
treec7c625371ab0c328fa7f1b127ddbf0172efc5fee
parente346fb6d774abf1d9a87d39b1e3eef0b7397d154
ext4: move ext4_xattr_handlers to .rodata

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

Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: linux-ext4@vger.kernel.org
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-3-wedsonaf@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ext4/xattr.c
fs/ext4/xattr.h