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 <sforshee@digitalocean.com>
Cc: Amir Goldstein <amir73il@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Aleksa Sarai <cyphar@cyphar.com>
Cc: <fstests@vger.kernel.org>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
---
/* v2 */
- Zorro Lang <zlang@redhat.com>:
- various minor fixes
- Christian Brauner (Microsoft) <brauner@kernel.org>:
- Expand test to also cover overlayfs on top of idmapped mounts.
/* v3 */
- Amir Goldstein <amir73il@gmail.com>:
- Switch from calls to the mount binary to _overlay_mount_dirs helper.
- Christian Brauner (Microsoft) <brauner@kernel.org>:
- Expand test to also cover non-idmapped mounts.
2 files changed