Commit 55557029 authored by Theodore Ts'o's avatar Theodore Ts'o

ext4 crypto: set up encryption info for new inodes in ext4_inherit_context()

Set up the encryption information for newly created inodes immediately
after they inherit their encryption context from their parent
directories.
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 95ea68b4
...@@ -206,6 +206,7 @@ int ext4_inherit_context(struct inode *parent, struct inode *child) ...@@ -206,6 +206,7 @@ int ext4_inherit_context(struct inode *parent, struct inode *child)
if (!res) { if (!res) {
ext4_set_inode_flag(child, EXT4_INODE_ENCRYPT); ext4_set_inode_flag(child, EXT4_INODE_ENCRYPT);
ext4_clear_inode_state(child, EXT4_STATE_MAY_INLINE_DATA); ext4_clear_inode_state(child, EXT4_STATE_MAY_INLINE_DATA);
res = ext4_get_encryption_info(child);
} }
return res; return res;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment