many: ensure classic confined binaries use the correct interpreter
Metadata
Current evaluation
Merged PR #1759 as commit 426fc8207, fixing #1662 by setting ELF .interp entries to the linker provided by core during prime.
Resolution: closed resolved
Reason: Merged PR #1759 as commit 426fc8207. Snapcraft now updates ELF files containing an .interp section to use the dynamic linker from core, resolving #1662.
Evaluated by: mr-cal-bot
No scores available.
Issue body
During the prime step, the pluginhandler collects all elf files,
as a postprocessing step, the elf files that contain an .interp
section in the elf headers are set to use the linker loader
from core.
Fixes: #1662
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh unit`?
-----
I have built a snap (but still sets the LD_FLAG) which can be obtained by `snap install snapcraft --classic --channel edge/patchelf`
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1759 as commit 426fc8207, fixing #1662 by setting ELF .interp entries to the linker provided by core during prime. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1759 via commit 426fc8207; fixed #1662 by setting ELF binaries with an .interp section to the core linker during prime. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Resolves #1662 by correcting the ELF interpreter path for classic confined binaries during the prime step. Approved by reviewers and passed CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Resolves #1662 by modifying the prime step to set the core linker loader for ELF interp sections in classic confined binaries. Approved after passing tests and review. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#1662
(confidence 100%)
The PR explicitly states "Fixes: #1662" and implements its patchelf-with-ld-linux fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1189 core: resolve ld link first. | snapcraft | merged | Merged PR #1189 as commit 78d1883ca, resolving ld symlinks before existence checks in classic-confinement builds and fixing LP #1672495. |