summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2022-06-28 10:15:11 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2022-06-28 10:15:11 +1000
commit64c73eed1cc5b1a51c1f84264d7edd0b5e42ec39 (patch)
tree8367438992d7486548161e6dedd7251d6c5f48e0 /include/linux
parentd34aa7f3b6cc4a5aa19eb1fb1772090d08f99f55 (diff)
parent45d719fe75622bd436f15c468738dddf8ff227dd (diff)
downloadlinux-next-64c73eed1cc5b1a51c1f84264d7edd0b5e42ec39.tar.gz
linux-next-64c73eed1cc5b1a51c1f84264d7edd0b5e42ec39.zip
Merge branch 'master' of git://github.com/ceph/ceph-client.git
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fscrypt.h5
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);