mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
hfsplus: move hfsplus_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to hfsplus_xattr_handlers at runtime. Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-15-wedsonaf@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
e27a45b650
commit
2c323f2c56
@ -13,7 +13,7 @@
|
||||
|
||||
static int hfsplus_removexattr(struct inode *inode, const char *name);
|
||||
|
||||
const struct xattr_handler *hfsplus_xattr_handlers[] = {
|
||||
const struct xattr_handler * const hfsplus_xattr_handlers[] = {
|
||||
&hfsplus_xattr_osx_handler,
|
||||
&hfsplus_xattr_user_handler,
|
||||
&hfsplus_xattr_trusted_handler,
|
||||
|
@ -17,7 +17,7 @@ extern const struct xattr_handler hfsplus_xattr_user_handler;
|
||||
extern const struct xattr_handler hfsplus_xattr_trusted_handler;
|
||||
extern const struct xattr_handler hfsplus_xattr_security_handler;
|
||||
|
||||
extern const struct xattr_handler *hfsplus_xattr_handlers[];
|
||||
extern const struct xattr_handler * const hfsplus_xattr_handlers[];
|
||||
|
||||
int __hfsplus_setxattr(struct inode *inode, const char *name,
|
||||
const void *value, size_t size, int flags);
|
||||
|
Loading…
Reference in New Issue
Block a user