diff options
author | 2023-09-30 02:00:27 -0300 | |
---|---|---|
committer | 2023-10-10 13:49:19 +0200 | |
commit | 149f455798a6fef6f5a88d43f930636b86dd9a74 (patch) | |
tree | a3b002affbdac2bb5b5e5d51fdbe7fa717c60428 /fs/smb/client/xattr.c | |
parent | reiserfs: move reiserfs_xattr_handlers to .rodata (diff) | |
download | linux-149f455798a6fef6f5a88d43f930636b86dd9a74.tar.gz linux-149f455798a6fef6f5a88d43f930636b86dd9a74.tar.bz2 linux-149f455798a6fef6f5a88d43f930636b86dd9a74.zip |
smb: move cifs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to
cifs_xattr_handlers at runtime.
Cc: Steve French <sfrench@samba.org>
Cc: Paulo Alcantara <pc@manguebit.com>
Cc: Ronnie Sahlberg <lsahlber@redhat.com>
Cc: Shyam Prasad N <sprasad@microsoft.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-24-wedsonaf@gmail.com
Reviewed-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/smb/client/xattr.c')
-rw-r--r-- | fs/smb/client/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/xattr.c b/fs/smb/client/xattr.c index 4ad5531686d8..ac199160bce6 100644 --- a/fs/smb/client/xattr.c +++ b/fs/smb/client/xattr.c @@ -478,7 +478,7 @@ static const struct xattr_handler smb3_ntsd_full_xattr_handler = { .set = cifs_xattr_set, }; -const struct xattr_handler *cifs_xattr_handlers[] = { +const struct xattr_handler * const cifs_xattr_handlers[] = { &cifs_user_xattr_handler, &cifs_os2_xattr_handler, &cifs_cifs_acl_xattr_handler, |