]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
teuthology/orchestra: store temporaries in tmp subdir i51169 1655/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 10 Jun 2021 18:23:11 +0000 (11:23 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 29 Jun 2021 15:47:39 +0000 (08:47 -0700)
commit78cfc248f48d111ab80be00e5a90382446346af1
tree1f0f18ca16d1e4b8f018acb20dff6f0de1d1addd
parent26631ede9027a5643f2e47dacc5af6f1834aac45
teuthology/orchestra: store temporaries in tmp subdir

Due to protections turned on in Ubuntu 20.04 from [1], files created by
other users (e.g. ubuntu) can not be manipulated by other users, even
root.

Instead of using /tmp as the parent directory for `mktemp` files, use a
sub-directory under it instead.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=30aba6656f61ed44cba445a3c0d38b296fa9e8f5

Fixes: https://tracker.ceph.com/issues/51169
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/misc.py
teuthology/orchestra/remote.py