Whamcloud - gitweb
LU-15176 sec: allow subdir mount of encrypted dir
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 29 Oct 2021 11:29:25 +0000 (13:29 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 21 Mar 2022 18:48:18 +0000 (18:48 +0000)
commit32f0bbe2646ae9fb61ba00c1fb4ffaa42577ca9d
treefc2367e75f0ec799776d8ca645367108680ad399
parent47deb13675f70ff699055adfac7b81eacf93fc41
LU-15176 sec: allow subdir mount of encrypted dir

In case of sub-directory mount of an encrypted directory, we need to
retrieve the encryption context of the root inode of the filesystem.
This is done by making the MDT return this upon getattr reply.

Also add sanity-sec test_60 to exercise this capability.

Lustre-change: https://review.whamcloud.com/45407
Lustre-commit: faf057b46bc770a1a69cacd59e65a40a4b18b9fd

Fixes: 40d91eafe2 ("LU-12275 sec: atomicity of encryption context getting/setting")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ic7a273813533f2904225011b247cdfe995ce9be8
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45909
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/llite/llite_lib.c
lustre/mdc/mdc_dev.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_io.c
lustre/ptlrpc/layout.c
lustre/target/tgt_handler.c
lustre/tests/sanity-sec.sh