diff options
author | Wedson Almeida Filho <walmeida@microsoft.com> | 2023-09-30 02:00:11 -0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-09 16:24:17 +0200 |
commit | f354ed9810661334fe53196e83b08d8e8680f72f (patch) | |
tree | 6a7ce99e9163d3ab5f0ddca4f44c2766e92fa22c /fs/ecryptfs/ecryptfs_kernel.h | |
parent | 10f9fbe9f25a81fb103a98fb2ee5f77afbfdfacc (diff) | |
download | linux-stable-f354ed9810661334fe53196e83b08d8e8680f72f.tar.gz linux-stable-f354ed9810661334fe53196e83b08d8e8680f72f.tar.bz2 linux-stable-f354ed9810661334fe53196e83b08d8e8680f72f.zip |
ecryptfs: move ecryptfs_xattr_handlers to .rodata
This makes it harder for accidental or malicious changes to
ecryptfs_xattr_handlers at runtime.
Cc: Tyler Hicks <code@tyhicks.com>
Cc: ecryptfs@vger.kernel.org
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20230930050033.41174-8-wedsonaf@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/ecryptfs/ecryptfs_kernel.h')
-rw-r--r-- | fs/ecryptfs/ecryptfs_kernel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h index f2ed0c0266cb..c586c5db18b5 100644 --- a/fs/ecryptfs/ecryptfs_kernel.h +++ b/fs/ecryptfs/ecryptfs_kernel.h @@ -702,6 +702,6 @@ int ecryptfs_set_f_namelen(long *namelen, long lower_namelen, int ecryptfs_derive_iv(char *iv, struct ecryptfs_crypt_stat *crypt_stat, loff_t offset); -extern const struct xattr_handler *ecryptfs_xattr_handlers[]; +extern const struct xattr_handler * const ecryptfs_xattr_handlers[]; #endif /* #ifndef ECRYPTFS_KERNEL_H */ |