Whamcloud - gitweb
LU-15176 sec: allow subdir mount of encrypted dir 07/45407/10
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 29 Oct 2021 11:29:25 +0000 (13:29 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 18 Jan 2022 09:09:29 +0000 (09:09 +0000)
commitfaf057b46bc770a1a69cacd59e65a40a4b18b9fd
treeb4362eb441988efb43cf313fa3db88cfa621b80f
parent4231fab66eab3e984499bf0c6bd4514692a409fa
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.

Fixes: 40d91eafe2 ("LU-12275 sec: atomicity of encryption context getting/setting")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ic7a273813533f2904225011b247cdfe995ce9be8
Reviewed-on: https://review.whamcloud.com/45407
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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