diff options
author | Wedson Almeida Filho <walmeida@microsoft.com> | 2023-09-30 07:00:22 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-09 16:24:20 +0200 |
commit | f496647e3b09945f54bdbe78a998130cf736b4fc (patch) | |
tree | 8aaf36bd88d91d705ff83dda9b37bb58100a6b22 /fs/nfs/nfs.h | |
parent | kernfs: move kernfs_xattr_handlers to .rodata (diff) | |
download | linux-f496647e3b09945f54bdbe78a998130cf736b4fc.tar.xz linux-f496647e3b09945f54bdbe78a998130cf736b4fc.zip |
nfs: move nfs4_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to
nfs4_xattr_handlers at runtime.
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: Anna Schumaker <anna@kernel.org>
Cc: linux-nfs@vger.kernel.org
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-19-wedsonaf@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/nfs/nfs.h')
-rw-r--r-- | fs/nfs/nfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs.h b/fs/nfs/nfs.h index 5ba00610aede..0d3ce0460e35 100644 --- a/fs/nfs/nfs.h +++ b/fs/nfs/nfs.h @@ -18,7 +18,7 @@ struct nfs_subversion { const struct rpc_version *rpc_vers; /* NFS version information */ const struct nfs_rpc_ops *rpc_ops; /* NFS operations */ const struct super_operations *sops; /* NFS Super operations */ - const struct xattr_handler **xattr; /* NFS xattr handlers */ + const struct xattr_handler * const *xattr; /* NFS xattr handlers */ struct list_head list; /* List of NFS versions */ }; |