landlock: jailed exec of bash refused on GitHub ubuntu-26.04 runner with Python 3.12 (3.13 passes)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- bash, linux, python
- Domain
- operating-systems, testing
Research direction
Start with _landlock_argv and the two named integration tests: integration/test_landlock_tmp_hint.py::test_landlock_refused_tmp_write_gets_the_hint_and_tmpdir_works and integration/test_sandbox_fail_closed.py::test_without_bwrap_landlock_jails_the_session. Reproduce on the reported Ubuntu 26.04 runner with Python 3.12 and inspect the read/write roots and PATH symlinks used for the Landlock jail. Done when the cause is understood and both tests pass without skipping on the affected setup.
Written by the indexing model from the issue text.
Description
Seen in CI for #423 (integration layer now runs in CI), job 3.12, twice, runner image ubuntu26/20261122.9 and ubuntu26/20261129.15; the 3.13 job on the same image passes.
integration/test_landlock_tmp_hint.py::test_landlock_refused_tmp_write_gets_the_hint_and_tmpdir_works and integration/test_sandbox_fail_closed.py::test_without_bwrap_landlock_jails_the_session: with no bwrap on PATH (Landlock jail, AD-35), every bash command returns
tether.landlock: exec bash: Permission denied
[exit 127]
Both tests pass locally on Python 3.12.3 and 3.14 (kernel with Landlock, bwrap blocked). Unknown so far: which ro/rw roots _landlock_argv builds on that runner (PATH = a tmp dir with symlinks to bash/echo/cat; /tmp is not in the read roots), and why the Python version changes it.
Impact if real: on such a host without bwrap, a tether session cannot run any bash command (it fails loudly, exit 127, not silently).
Interim: the two tests skip with this message when the jailed exec is refused, so CI stays green while this is investigated.
🤖 Generated with Claude Code
- Dominant language
- Python
- Stars
- 3
- Forks
- 1
- Avg merge
- 1h 10m
- Merged PRs (30d)
- 175
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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 igormcsouza/tether
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
igormcsouza/tether#428 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
igormcsouza/tether#412 · 1 comment ·
Maintainers usually reply within 1 day
-
feat(api): tether serve, an optional local HTTP + SSE API for external UIs (no UI in this repo)Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
igormcsouza/tether#387 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
igormcsouza/tether#386 ·
Maintainers usually reply within 1 day
-
enhancement help wanted
Difficulty 5/5 Over a week Newbie friendliness 18/100
igormcsouza/tether#385 ·
Maintainers usually reply within 1 day
All issues in igormcsouza/tether
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
available bug good first issue tooling
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#816 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
SpikeInterface/spikeinterface#5008 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
teng-lin/notebooklm-py#2593 ·
Maintainers usually reply within 1 day
-
claimed-by:collie role:small-fix status:running
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Beovulfo/herd-sdlc#325 · 1 comment ·
Maintainers usually reply within 1 day