projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95ea68b
)
ext4 crypto: set up encryption info for new inodes in ext4_inherit_context()
author
Theodore Ts'o
<tytso@mit.edu>
Sun, 31 May 2015 17:34:29 +0000
(13:34 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 31 May 2015 17:34:29 +0000
(13:34 -0400)
Set up the encryption information for newly created inodes immediately
after they inherit their encryption context from their parent
directories.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/crypto_policy.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/crypto_policy.c
b/fs/ext4/crypto_policy.c
index 683391f790d61bc6e1c1cb4fda1fadf29c29565b..81980a158dc71e2d298ce92381a57514c6cf4953 100644
(file)
--- a/
fs/ext4/crypto_policy.c
+++ b/
fs/ext4/crypto_policy.c
@@
-206,6
+206,7
@@
int ext4_inherit_context(struct inode *parent, struct inode *child)
if (!res) {
ext4_set_inode_flag(child, EXT4_INODE_ENCRYPT);
ext4_clear_inode_state(child, EXT4_STATE_MAY_INLINE_DATA);
+ res = ext4_get_encryption_info(child);
}
return res;
}