Skip to content

Harden runtime admission and Arch ALPM transaction setup - #1058

Open
PyRo1121 wants to merge 4 commits into
codex/arch-hardeningfrom
codex/runtime-alpm-audit-fixes
Open

PyRo1121 wants to merge 4 commits into
codex/arch-hardeningfrom
codex/runtime-alpm-audit-fixes

Conversation

@PyRo1121

@PyRo1121 PyRo1121 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Runtime fixes

  • Compare the staged Rust toolchain with the previous integrity receipt before adding components, and retain existing integrity gaps.
  • Require a completed installation before installed-runtime admission. Keep Erlang's pending marker until its final review succeeds.
  • Bound subprocess time and output during PHP, Swift, and Erlang installation checks.

Arch ALPM fixes

  • Load the default local pacman hooks when no HookDir is configured. Preserve explicit overrides.
  • Apply DownloadUser to the libalpm handle and reject unknown accounts.
  • Validate staged repository catalogs before publishing them.
  • Use the first configured architecture for repository URLs, with host architecture for auto.

Verification

Arch WSL focused checks and module suites passed in the current checkout using the Arch feature without default features. The module suites reported 174 passed and 3 ignored. Rust formatting and patch whitespace checks passed. The test run used the working checkout, which included separate local edits excluded from this PR. The downloader check verified the libalpm setting. A live downloader UID check remains outstanding.

This PR targets the branch for #1057 because it supplies the runtime and ALPM code these fixes build on. The diff contains one commit across 11 files.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@snyk-io

snyk-io Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants