mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
fuse: move fuse_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to fuse_xattr_handlers at runtime. Cc: Miklos Szeredi <miklos@szeredi.hu> Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-12-wedsonaf@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
a1c0752c33
commit
34271edb18
2 changed files with 2 additions and 2 deletions
|
@ -1284,7 +1284,7 @@ ssize_t fuse_getxattr(struct inode *inode, const char *name, void *value,
|
||||||
size_t size);
|
size_t size);
|
||||||
ssize_t fuse_listxattr(struct dentry *entry, char *list, size_t size);
|
ssize_t fuse_listxattr(struct dentry *entry, char *list, size_t size);
|
||||||
int fuse_removexattr(struct inode *inode, const char *name);
|
int fuse_removexattr(struct inode *inode, const char *name);
|
||||||
extern const struct xattr_handler *fuse_xattr_handlers[];
|
extern const struct xattr_handler * const fuse_xattr_handlers[];
|
||||||
|
|
||||||
struct posix_acl;
|
struct posix_acl;
|
||||||
struct posix_acl *fuse_get_inode_acl(struct inode *inode, int type, bool rcu);
|
struct posix_acl *fuse_get_inode_acl(struct inode *inode, int type, bool rcu);
|
||||||
|
|
|
@ -209,7 +209,7 @@ static const struct xattr_handler fuse_xattr_handler = {
|
||||||
.set = fuse_xattr_set,
|
.set = fuse_xattr_set,
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct xattr_handler *fuse_xattr_handlers[] = {
|
const struct xattr_handler * const fuse_xattr_handlers[] = {
|
||||||
&fuse_xattr_handler,
|
&fuse_xattr_handler,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue