Repository navigation
docs(heimdall): mask packagekit so package installs need the password - #1772
Merged
Merged
Conversation
Raspberry Pi OS's 10-gui-pkinst.rules lets any sudo member install or remove packages through PackageKit without authenticating, over SSH too. build-heimdall.md §2 now masks packagekit.service, with its undo in §9. Applied on heimdall 2026-11-26. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ckagekit # Conflicts: # docs/changelog.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
build-heimdall.md§2 gains "No package installs without the password":sudo systemctl mask --now packagekit.service, with a check and its undo in §9. A changelog entry records it. It is already applied onheimdall.Why
A re-check of
heimdallafter the 2026-11-26 04:30 boot found Raspberry Pi OS's/usr/share/polkit-1/rules.d/10-gui-pkinst.rules, in place since the build. It lets anysudomember install, remove and upgrade packages through PackageKit without authenticating. Its only condition is the caller's command line, which the caller sets, and it has no local-session requirement. So the SSH key alone could removenftables, and that undid part of 2026-11-25's "sudo asks for the password" hardening. The desktop metapackages depend onpackagekit, so the change masks it instead of purging it. Nothing on the kiosk uses it.The same check found that unattended-upgrades installed
browser-choice, a new dependency ofrpd-applications1.39. It is harmless, and the changelog records it.Blast radius
heimdallonly. If this is wrong, the desktop's GUI package tools on the Pi stop working; the kiosk does not use them, and unattended-upgrades calls apt directly.secrets/*.sops.yamlVerification
On
heimdall, aftersudo systemctl mask --now packagekit.service:systemctl is-enabled packagekit.serviceprintedmasked, andis-activeprintedinactive.gdbus … org.freedesktop.DBus.Peer.Pingfrom the runbook failed withUnitMasked: Unit packagekit.service is masked, and the journal shows dbus-daemon refusing the activation.systemctl --failedis empty.Locally:
python3 scripts/check_docs.pyprinted "docs OK". In./scripts/lint.sh, yamllint, shellcheck, ruff, actionlint and the conflict-marker checks pass. markdownlint-cli2, zizmor, packer, tofu and editorconfig-checker were skipped because there is no docker daemon. ansible-lint fails on a local tool error ("--pip-argscontains '-c'"); it fails the same way on unchangedmain, and this PR touches no Ansible.make validatewas not run (docs only).make validatepassesdocs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code