diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2022-06-20 08:29:02 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2022-06-20 08:29:02 +1000 |
commit | ed309bced499109bd6a3a2d251e8985beff2457d (patch) | |
tree | 26bc485289cfc6055effac7840187e7314a25c2e /include | |
parent | fa7efa57ffdbf82efa0f5c05afb9caee79e0b937 (diff) | |
parent | 45d719fe75622bd436f15c468738dddf8ff227dd (diff) |
Merge branch 'master' of git://github.com/ceph/ceph-client.git
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fscrypt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h index e60d57c99cb6..7d2f1e0f23b1 100644 --- a/include/linux/fscrypt.h +++ b/include/linux/fscrypt.h @@ -284,6 +284,7 @@ int fscrypt_ioctl_get_policy(struct file *filp, void __user *arg); int fscrypt_ioctl_get_policy_ex(struct file *filp, void __user *arg); int fscrypt_ioctl_get_nonce(struct file *filp, void __user *arg); int fscrypt_has_permitted_context(struct inode *parent, struct inode *child); +int fscrypt_context_for_new_inode(void *ctx, struct inode *inode); int fscrypt_set_context(struct inode *inode, void *fs_data); struct fscrypt_dummy_policy { @@ -327,6 +328,10 @@ void fscrypt_free_inode(struct inode *inode); int fscrypt_drop_inode(struct inode *inode); /* fname.c */ +int fscrypt_fname_encrypt(const struct inode *inode, const struct qstr *iname, + u8 *out, unsigned int olen); +bool fscrypt_fname_encrypted_size(const struct inode *inode, u32 orig_len, + u32 max_len, u32 *encrypted_len_ret); int fscrypt_setup_filename(struct inode *inode, const struct qstr *iname, int lookup, struct fscrypt_name *fname); |