Whamcloud - gitweb
LU-12275 sec: decryption for read path 45/36145/28
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 22 Aug 2019 08:48:19 +0000 (08:48 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 16 Jun 2020 03:53:39 +0000 (03:53 +0000)
commiteecf86131d099242d2e8c1f5d6be241ec1416c9a
tree569cfe630a7d372c6089cef12e5582c609280b1c
parenta9ed5b149646f91f23839bbe2d755542d129f5b7
LU-12275 sec: decryption for read path

With the support for encryption, all files need to be opened with
fscrypt_file_open(). fscrypt will retrieve encryption context if
file is encrypted, or immediately return if not.
Decryption itself is carried out in osc_brw_fini_request(), right
after the reply has been received from the server.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I8f8f87eb8e07e35e1a4e6cc157ceddfef6934753
Reviewed-on: https://review.whamcloud.com/36145
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <farr0186@gmail.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/crypto.c
lustre/llite/file.c
lustre/osc/osc_request.c