Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filelocks: use mount idmapping for setlease permission check
A user should be allowed to take out a lease via an idmapped mount if the fsuid matches the mapped uid of the inode. generic_setlease() is checking the unmapped inode uid, causing these operations to be denied. Fix this by comparing against the mapped inode uid instead of the unmapped uid. Fixes: 9caccd4 ("fs: introduce MOUNT_ATTR_IDMAP") Cc: [email protected] Signed-off-by: Seth Forshee (DigitalOcean) <[email protected]> Signed-off-by: Christian Brauner (Microsoft) <[email protected]>
- Loading branch information