diff options
| author | Wedson Almeida Filho <[email protected]> | 2023-09-30 05:00:21 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2023-10-09 14:24:20 +0000 |
| commit | ffb2e06508279ced466d60164105da3f5c1b14be (patch) | |
| tree | 742b1d4c7f9e701d47e04894b0b9806d2b3f4d14 /fs/kernfs/kernfs-internal.h | |
| parent | jfs: move jfs_xattr_handlers to .rodata (diff) | |
| download | kernel-ffb2e06508279ced466d60164105da3f5c1b14be.tar.gz kernel-ffb2e06508279ced466d60164105da3f5c1b14be.zip | |
kernfs: move kernfs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to
kernfs_xattr_handlers at runtime.
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Wedson Almeida Filho <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/kernfs/kernfs-internal.h')
| -rw-r--r-- | fs/kernfs/kernfs-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h index a9b854cdfdb5..237f2764b941 100644 --- a/fs/kernfs/kernfs-internal.h +++ b/fs/kernfs/kernfs-internal.h @@ -127,7 +127,7 @@ extern struct kmem_cache *kernfs_node_cache, *kernfs_iattrs_cache; /* * inode.c */ -extern const struct xattr_handler *kernfs_xattr_handlers[]; +extern const struct xattr_handler * const kernfs_xattr_handlers[]; void kernfs_evict_inode(struct inode *inode); int kernfs_iop_permission(struct mnt_idmap *idmap, struct inode *inode, int mask); |
