]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use null mode to prevent undesired changes to mountpoint
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 5 Oct 2020 17:40:42 +0000 (10:40 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 23 Oct 2020 03:11:22 +0000 (20:11 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 2432871a1ba41223c52bf59fd12f1b8f53c03bda)

Conflicts:
qa/tasks/cephfs/fuse_mount.py

qa/tasks/cephfs/fuse_mount.py

index 57c59acabbb527cc8854ef92c58a7221d571ae03..1f5fe1b0b663583deaf1928e781c782e655e59da 100644 (file)
@@ -54,7 +54,9 @@ class FuseMount(CephFSMount):
         log.info('Mounting ceph-fuse client.{id} at {remote} {mnt}...'.format(
             id=self.client_id, remote=self.client_remote, mnt=self.mountpoint))
 
-        self.client_remote.run(args=['mkdir', '-p', self.mountpoint],
+        # Use 0000 mode to prevent undesired modifications to the mountpoint on
+        # the local file system.
+        self.client_remote.run(args=['mkdir', '-m', '0000', '-p', self.mountpoint],
                                timeout=(15*60), cwd=self.test_dir)
 
         run_cmd = [