shmem: move shmem_xattr_handlers to .rodata
authorWedson Almeida Filho <walmeida@microsoft.com>
Sat, 30 Sep 2023 05:00:32 +0000 (02:00 -0300)
committerChristian Brauner <brauner@kernel.org>
Tue, 10 Oct 2023 11:49:20 +0000 (13:49 +0200)
commit2f5028604f08fa9fe40c07295843d6917d9d0a94
tree7a19106fec85d33e40fe7c000e8f5da554e0afbe
parent3d649a4a832ecfa48bf1f62972c1ddf0030785d3
shmem: move shmem_xattr_handlers to .rodata

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

Cc: Hugh Dickins <hughd@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-29-wedsonaf@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
mm/shmem.c