Just checking the caps in the keyring is enough.
Fixes: e64931b6a80 ("mds/Server: disallow clients that have root_squash")
Fixes: https://tracker.ceph.com/issues/63141
Signed-off-by: Xiubo Li <xiubli@redhat.com>
mdscap = gen_mds_cap_str(((PERM, self.fs.name, PATH, True),))
for cap in (moncap, osdcap, mdscap):
self.assertIn(cap, keyring)
- self._remount(self.mount_a, self.fs.name, keyring, PATH)
- self.captester.run_cap_tests(self.fs, self.client_id, PERM, PATH)
def _get_uid(self):
return self.mount_a.client_remote.run(