Unable to set file as unreadable inside tox container
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with the linked tox.ini reproducer and .github/workflows/test.yml, then run the workflow to compare file permissions and the read attempt with local behavior. Done means the final Python read raises Permission denied in the tox container, or the issue clearly documents why that cannot be supported.
Written by the indexing model from the issue text.
Description
I have a Python module that relies on setting permissons to a file as unreadable.
Unfortunately, it looks like this is not possible inside the tox container.
Here's the minimal reproducer : https://github.com/matthew-brett/test-actions/blob/main/tox.ini
In particular, I have this test in my tox.ini file:
touch unreadable
python -c "import os; os.chmod('unreadable', 0o200)"
python -c "open('unreadable', 'rb').read()"
Obviously the last line should cause a Permission denied error, and that is what happens locally. But running via this action using this minimal workflow, I get no error - Python can read the unreadable file.
I wonder whether this is because the tox tests are running as some privileged user, for whom setting the user read permission is not effective?
- Dominant language
- Python
- Stars
- 17
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fedora-python/tox-github-action
-
Tox in verbose mode? Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
fedora-python/tox-github-action#8 · 4 comments ·
All issues in fedora-python/tox-github-action
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·