Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce31513a authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

ovl: copyattr after setting POSIX ACL



Setting POSIX acl may also modify the file mode, so need to copy that up to
the overlay inode.

Reported-by: default avatarEryu Guan <eguan@redhat.com>
Fixes: d837a49b ("ovl: fix POSIX ACL setting")
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 0e585ccc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1018,7 +1018,11 @@ ovl_posix_acl_xattr_set(const struct xattr_handler *handler,

	posix_acl_release(acl);

	return ovl_xattr_set(dentry, handler->name, value, size, flags);
	err = ovl_xattr_set(dentry, handler->name, value, size, flags);
	if (!err)
		ovl_copyattr(ovl_inode_real(inode, NULL), inode);

	return err;

out_acl_release:
	posix_acl_release(acl);