generic/692: test group ownership change
When group ownership is changed a caller whose fsuid owns the inode can
change the group of the inode to any group they are a member of. When
searching through the caller's groups we failed to use the gid mapped
according to the idmapped mount otherwise we fail to change ownership.
Add a test for this.
Cc: Seth Forshee <firstname.lastname@example.org>
Cc: Amir Goldstein <email@example.com>
Cc: Christoph Hellwig <firstname.lastname@example.org>
Cc: Aleksa Sarai <email@example.com>
Signed-off-by: Christian Brauner (Microsoft) <firstname.lastname@example.org>
/* v2 */
- Zorro Lang <email@example.com>:
- various minor fixes
- Christian Brauner (Microsoft) <firstname.lastname@example.org>:
- Expand test to also cover overlayfs on top of idmapped mounts.
2 files changed