Unverified Commit e27a45b6 authored by Wedson Almeida Filho's avatar Wedson Almeida Filho Committed by Christian Brauner
Browse files

hfs: move hfs_xattr_handlers to .rodata



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

Signed-off-by: default avatarWedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-14-wedsonaf@gmail.com


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 89491faf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ static const struct xattr_handler hfs_type_handler = {
	.set = hfs_xattr_set,
};

const struct xattr_handler *hfs_xattr_handlers[] = {
const struct xattr_handler * const hfs_xattr_handlers[] = {
	&hfs_creator_handler,
	&hfs_type_handler,
	NULL
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ extern void hfs_evict_inode(struct inode *);
extern void hfs_delete_inode(struct inode *);

/* attr.c */
extern const struct xattr_handler *hfs_xattr_handlers[];
extern const struct xattr_handler * const hfs_xattr_handlers[];

/* mdb.c */
extern int hfs_mdb_get(struct super_block *);