summaryrefslogtreecommitdiff
path: root/fs/smb/client/cifsfs.h
diff options
context:
space:
mode:
authorWedson Almeida Filho <walmeida@microsoft.com>2023-09-30 08:00:27 +0300
committerChristian Brauner <brauner@kernel.org>2023-10-10 14:49:19 +0300
commit149f455798a6fef6f5a88d43f930636b86dd9a74 (patch)
treea3b002affbdac2bb5b5e5d51fdbe7fa717c60428 /fs/smb/client/cifsfs.h
parent29a69055e2e11040437f89e0355979d3d6e77149 (diff)
downloadlinux-149f455798a6fef6f5a88d43f930636b86dd9a74.tar.xz
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/cifsfs.h')
-rw-r--r--fs/smb/client/cifsfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/cifsfs.h b/fs/smb/client/cifsfs.h
index 41daebd220ff..8ca3d7606bb4 100644
--- a/fs/smb/client/cifsfs.h
+++ b/fs/smb/client/cifsfs.h
@@ -127,7 +127,7 @@ extern int cifs_symlink(struct mnt_idmap *idmap, struct inode *inode,
struct dentry *direntry, const char *symname);
#ifdef CONFIG_CIFS_XATTR
-extern const struct xattr_handler *cifs_xattr_handlers[];
+extern const struct xattr_handler * const cifs_xattr_handlers[];
extern ssize_t cifs_listxattr(struct dentry *, char *, size_t);
#else
# define cifs_xattr_handlers NULL