diff options
author | Jeff Layton <[email protected]> | 2021-07-01 14:40:51 -0400 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2023-08-24 11:24:35 +0200 |
commit | 94af0470924c6368b07f9125fde29d6698ed1558 (patch) | |
tree | e57d43966918a93ab86b2110e4c1ea4f90690529 /drivers/platform/surface/aggregator/ssh_parser.c | |
parent | 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd (diff) |
ceph: add some fscrypt guardrails
Add the appropriate calls into fscrypt for various actions, including
link, rename, setattr, and the open codepaths.
Disable fallocate for encrypted inodes -- hopefully, just for now.
If we have an encrypted inode, then the client will need to re-encrypt
the contents of the new object. Disable copy offload to or from
encrypted inodes.
Set i_blkbits to crypto block size for encrypted inodes -- some of the
underlying infrastructure for fscrypt relies on i_blkbits being aligned
to crypto blocksize.
Report STATX_ATTR_ENCRYPTED on encrypted inodes.
[ lhenriques: forbid encryption with striped layouts ]
Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Xiubo Li <[email protected]>
Reviewed-and-tested-by: Luís Henriques <[email protected]>
Reviewed-by: Milind Changire <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions