mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
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>
This commit is contained in:
parent
149f455798
commit
c08a831c74
2 changed files with 2 additions and 2 deletions
|
@ -111,4 +111,4 @@ extern const struct address_space_operations squashfs_symlink_aops;
|
|||
extern const struct inode_operations squashfs_symlink_inode_ops;
|
||||
|
||||
/* xattr.c */
|
||||
extern const struct xattr_handler *squashfs_xattr_handlers[];
|
||||
extern const struct xattr_handler * const squashfs_xattr_handlers[];
|
||||
|
|
|
@ -262,7 +262,7 @@ static const struct xattr_handler *squashfs_xattr_handler(int type)
|
|||
}
|
||||
}
|
||||
|
||||
const struct xattr_handler *squashfs_xattr_handlers[] = {
|
||||
const struct xattr_handler * const squashfs_xattr_handlers[] = {
|
||||
&squashfs_xattr_user_handler,
|
||||
&squashfs_xattr_trusted_handler,
|
||||
&squashfs_xattr_security_handler,
|
||||
|
|
Loading…
Reference in a new issue