mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-14-wedsonaf@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
89491fafa8
commit
e27a45b650
@ -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
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user