Whamcloud - gitweb
LU-15176 sec: present .fscrypt in subdir mount
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 12 Jan 2022 10:13:44 +0000 (11:13 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 31 Mar 2022 04:17:23 +0000 (04:17 +0000)
commitf1e322a33f58d96c5d6eb12e5eb2768517d3f5f8
treef0b2c66728761bf3b24235ff1b0f5c8fa293e9a6
parentb6319622ea0aa52bc85564775392f296fc40528a
LU-15176 sec: present .fscrypt in subdir mount

fscrypt userspace tool works with a .fscrypt directory at the root of
the file system. In case of subdirectory mount, we virtually present
this .fscrypt directory at the root of the mount point so that fscrypt
can be used. This makes it possible to even do a subdirectory mount of
an encrypted directory, making clients access encrypted content only.
Internally, the .fscrypt directory is always stored at the root of
Lustre.

Lustre-change: https://review.whamcloud.com/46167
Lustre-commit: c12378fba7f0aa2f25de2b295ee110e2932f2a39

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I2a0ee360f724da1df49b2be0df986d52e06f45fd
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46888
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/crypto.c
lustre/llite/llite_lib.c
lustre/llite/namei.c
lustre/tests/sanity-sec.sh