Whamcloud - gitweb
LU-14629 sec: forbid file rename from enc to unencrypted dir
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 22 Apr 2021 09:26:51 +0000 (11:26 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 20 Jul 2021 20:05:18 +0000 (20:05 +0000)
commitfc3b38602de47eeb18506a918b766c52ab3b9dbe
tree0a8f64cd79e040e31a1c96d970f78f25631c2dad
parentb842fb6fd5bfcf0ac7adec5f61d1c449d9000a35
LU-14629 sec: forbid file rename from enc to unencrypted dir

fscrypt allows renaming an encrypted file from an encrypted directory
into an unencrypted directory. But it leaves the file encrypted,
sitting in an unencrypted directory, which can lead to unexpected
issues.
So just prevent this kind of rename, and adapt sanity-sec test_47
accordingly.

Lustre-change: https://review.whamcloud.com/43404
Lustre-commit: 1158386ac9c6a638f791f62e47a7513b2322772c

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I38e17caa4786c1c8d80a363a826a5aa298eb0980
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43908
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/namei.c
lustre/mdd/mdd_dir.c
lustre/tests/sanity-sec.sh