afs: move afs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to afs_xattr_handlers at runtime. Cc: David Howells <dhowells@redhat.com> Cc: Marc Dionne <marc.dionne@auristor.com> Cc: linux-afs@lists.infradead.org Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-5-wedsonaf@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
b6079dc9cb
commit
f710c2e481
@ -1541,7 +1541,7 @@ int afs_launder_folio(struct folio *);
|
||||
/*
|
||||
* xattr.c
|
||||
*/
|
||||
extern const struct xattr_handler *afs_xattr_handlers[];
|
||||
extern const struct xattr_handler * const afs_xattr_handlers[];
|
||||
|
||||
/*
|
||||
* yfsclient.c
|
||||
|
@ -353,7 +353,7 @@ static const struct xattr_handler afs_xattr_afs_volume_handler = {
|
||||
.get = afs_xattr_get_volume,
|
||||
};
|
||||
|
||||
const struct xattr_handler *afs_xattr_handlers[] = {
|
||||
const struct xattr_handler * const afs_xattr_handlers[] = {
|
||||
&afs_xattr_afs_acl_handler,
|
||||
&afs_xattr_afs_cell_handler,
|
||||
&afs_xattr_afs_fid_handler,
|
||||
|
Loading…
x
Reference in New Issue
Block a user