Ensure the tmp_path is sufficiently open.
Merge pull request #2998 from SirScott/runner-permissions

Ensure the tmp_path is sufficiently open.