Files
pytest2/testing
Ran Benita 822686e880 tmpdir: prevent using a non-private root temp directory
pytest uses a root temp directory named `/tmp/pytest-of-<username>`. The
name is predictable, and the directory might already exists from a
previous run, so that's allowed.

This makes it possible for my_user to pre-create
`/tmp/pytest-of-another_user`, thus giving my_user control of
another_user's tempdir.

Prevent this scenario by adding a couple of safety checks. I believe
they are sufficient.

Testing the first check requires changing the owner, which requires
root permissions, so can't be unit-tested easily, but I checked it
manually.
2021-04-04 00:04:50 +03:00
..
2020-10-31 12:40:25 +02:00
2020-10-05 18:33:17 -07:00
2020-08-03 10:10:43 +03:00
2020-10-03 12:46:54 -07:00
2020-10-05 18:33:17 -07:00
2020-10-03 12:46:54 -07:00
2020-10-03 12:46:54 -07:00
2020-10-05 18:33:17 -07:00
2020-10-05 18:33:17 -07:00
2020-10-25 01:27:44 +02:00
2020-10-05 18:33:17 -07:00