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 <>
Cc: Christoph Hellwig <>
Cc: Aleksa Sarai <>
Cc: <>
Signed-off-by: Christian Brauner (Microsoft) <>
2 files changed