nfs: move nfs4_xattr_handlers to .rodata
authorWedson Almeida Filho <walmeida@microsoft.com>
Sat, 30 Sep 2023 05:00:22 +0000 (02:00 -0300)
committerChristian Brauner <brauner@kernel.org>
Mon, 9 Oct 2023 14:24:20 +0000 (16:24 +0200)
commitf496647e3b09945f54bdbe78a998130cf736b4fc
tree8aaf36bd88d91d705ff83dda9b37bb58100a6b22
parentffb2e06508279ced466d60164105da3f5c1b14be
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>
fs/nfs/nfs.h
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c