]> git.apps.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>
Wed, 27 Mar 2024 04:19:54 +0000 (12:19 +0800)
commit59c9104c54d64e449062d350346b33ad0b3371c9
tree2ff7358fc2435f856c65d5e408025d5368ab46f4
parent7547e8a207a7ef7eb1ba60b6af36c470626b6469
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>
(cherry picked from commit 28023f84d714488a5dfd17b2191790ed15909fb3)

Conflicts:
qa/tasks/cephfs/caps_helper.py: missed dependency commit
f0ffade0525("qa/cephfs/cap_tester: simplify CapTester and its
instantiation")
qa/tasks/cephfs/caps_helper.py
qa/tasks/cephfs/test_admin.py