]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: add test for checking access in client side of root_squash
authorXiubo Li <xiubli@redhat.com>
Wed, 2 Nov 2022 01:12:16 +0000 (09:12 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 11 Sep 2023 01:29:46 +0000 (09:29 +0800)
commit28023f84d714488a5dfd17b2191790ed15909fb3
treec935de233f5407ac16f4dea0f4e1b53860b12d95
parent4af6a3f7441345766fddcf2a9086d3b777c9717a
qa: add test for checking access in client side of root_squash

Test the 'chown' and 'truncate', which will call the setattr and
'cat' will open the files. Before each testing will open the file
by non-root user and keep it to make sure the Fxw caps are issued,
and then user the 'sudo' do to the tests, which will set the uid/gid
to 0/0.

Fixes: https://tracker.ceph.com/issues/57154
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/caps_helper.py
qa/tasks/cephfs/test_admin.py