diff options
author | Eric Biggers <ebiggers@google.com> | 2017-10-09 22:15:41 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-10-19 02:52:38 +0300 |
commit | 0ea87a9644ebb5c9a3b100585d10533366de3269 (patch) | |
tree | 3934cd8c3a6f16ecbabd3b2909dba12bfde6b4ce /include/linux/fscrypt_notsupp.h | |
parent | efcc7ae2c9172d9a7ae94afdaf066a7abf0b9a90 (diff) | |
download | linux-0ea87a9644ebb5c9a3b100585d10533366de3269.tar.xz |
fscrypt: new helper function - fscrypt_prepare_link()
Introduce a helper function which prepares to link an inode into a
possibly-encrypted directory. It handles setting up the target
directory's encryption key, then verifying that the link won't violate
the constraint that all files in an encrypted directory tree use the
same encryption policy.
Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/linux/fscrypt_notsupp.h')
-rw-r--r-- | include/linux/fscrypt_notsupp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fscrypt_notsupp.h b/include/linux/fscrypt_notsupp.h index 162da6517ac4..d7d1039eb6b5 100644 --- a/include/linux/fscrypt_notsupp.h +++ b/include/linux/fscrypt_notsupp.h @@ -186,4 +186,10 @@ static inline int fscrypt_file_open(struct inode *inode, struct file *filp) return 0; } +static inline int __fscrypt_prepare_link(struct inode *inode, + struct inode *dir) +{ + return -EOPNOTSUPP; +} + #endif /* _LINUX_FSCRYPT_NOTSUPP_H */ |