]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test that file privilege gets dropped with FIEXCHANGE_RANGE
authorDarrick J. Wong <djwong@kernel.org>
Wed, 1 Mar 2023 02:59:32 +0000 (18:59 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 2 Mar 2023 09:16:47 +0000 (17:16 +0800)
commitf02d41a7b5cade6bb7f9b4009e787b284283eccf
tree0416154e3894f5967e387049fe273e6ebdec2550
parent81cbafc4597a0cc59e87eeae99ab7a1c8f2a70e8
generic: test that file privilege gets dropped with FIEXCHANGE_RANGE

Make sure that we clear the suid and sgid bits and capabilities during a
FIEXCHANGE_RANGE call just like we would for a regular file write.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/726 [new file with mode: 0755]
tests/generic/726.out [new file with mode: 0644]
tests/generic/727 [new file with mode: 0755]
tests/generic/727.out [new file with mode: 0755]