squashfs: move squashfs_xattr_handlers to .rodata
authorWedson Almeida Filho <walmeida@microsoft.com>
Sat, 30 Sep 2023 05:00:28 +0000 (02:00 -0300)
committerChristian Brauner <brauner@kernel.org>
Tue, 10 Oct 2023 11:49:20 +0000 (13:49 +0200)
commitc08a831c74f040ac332c31ad15254cc7462438bc
tree04ad2be35ee68afec07a56d2c72154a1628e6add
parent149f455798a6fef6f5a88d43f930636b86dd9a74
squashfs: move squashfs_xattr_handlers to .rodata

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

Cc: Phillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-25-wedsonaf@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/squashfs/squashfs.h
fs/squashfs/xattr.c