Whamcloud - gitweb
LU-15217 pcc: disable PCC for encrypted files 45/45545/4
authorQian Yingjin <qian@ddn.com>
Fri, 30 Jul 2021 08:47:55 +0000 (16:47 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Nov 2021 03:52:38 +0000 (03:52 +0000)
commitf8c79eea11ac960191df846cb9c95ed6eb6385fb
treee0384420384590ed91742ee4ed58d630b8d7d711
parent5e3345b6664767d2e7166baaf6ebd57b471a4f5f
LU-15217 pcc: disable PCC for encrypted files

When files are encrypted in Lustre using fscrypt, they should
normally not be accessible to users without the proper encyrption
key. However, if a user has then encryption key loaded when they
read a file, it may be decrypted in memory and saved to the PCC
backend in unencrypted form.

Due to the above reason, we just disable PCC caching for encrypted
files.

DDN-bug-id: EX-3571
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I6c363dcad7a6bc8520350c0295f6e221bec3abb0
Reviewed-on: https://review.whamcloud.com/45545
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/llite/pcc.c