]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: overlay group ownership changing test
authorChristian Brauner <brauner@kernel.org>
Tue, 20 Sep 2022 09:02:23 +0000 (17:02 +0800)
committerZorro Lang <zlang@kernel.org>
Wed, 21 Sep 2022 01:42:18 +0000 (09:42 +0800)
commitb7adca6f6676eee80cfd2f31e8918369547b2036
treec46e58a4d349b9f66124401ab23217ca9e2c75db
parentc343488d82d42c069756d1806d70f0f42e3173f7
generic: overlay group ownership changing test

This's copied from generic/698, extend it to test overlayfs on top of
idmapped mounts specifically.

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.

Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/699 [new file with mode: 0755]
tests/generic/699.out [new file with mode: 0644]