author: Eric Biggers <ebiggers@google.com> 2021-07-01 23:53:48 -0700
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-09-03 10:23:07 +0200
commit: 7532df5ee0853c38ad43a89c01fd304194cce140
parent: f04584399d1cf1d4f8f4956b1b97e87dd1d6a0f1
Commit Summary:
Diffstat:
1 file changed, 10 insertions, 1 deletion
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index d4139e166b95..ddaa11c762d1 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -1313,9 +1313,19 @@ static const char *f2fs_encrypted_get_link(struct dentry *dentry,
return target;
}
+static int f2fs_encrypted_symlink_getattr(struct user_namespace *mnt_userns,
+ const struct path *path,
+ struct kstat *stat, u32 request_mask,
+ unsigned int query_flags)
+{
+ f2fs_getattr(mnt_userns, path, stat, request_mask, query_flags);
+
+ return fscrypt_symlink_getattr(path, stat);
+}
+
const struct inode_operations f2fs_encrypted_symlink_inode_operations = {
.get_link = f2fs_encrypted_get_link,
- .getattr = f2fs_getattr,
+ .getattr = f2fs_encrypted_symlink_getattr,
.setattr = f2fs_setattr,
.listxattr = f2fs_listxattr,
};