Whamcloud - gitweb
LU-15176 sec: present .fscrypt in subdir mount 67/46167/3
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 12 Jan 2022 10:13:44 +0000 (11:13 +0100)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Jan 2022 01:34:42 +0000 (01:34 +0000)
commitc12378fba7f0aa2f25de2b295ee110e2932f2a39
tree8645b04984e850de97c48700230e5c1aec995d48
parent4143c3bdec2a87319a6c9dee4a589cd41e85dad3
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.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I2a0ee360f724da1df49b2be0df986d52e06f45fd
Reviewed-on: https://review.whamcloud.com/46167
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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