Repository navigation
Feature: Opt-in NixOS module for polkit root actions - #137
Merged
Merged
Conversation
Co-Authored-By: GPT-6.1-sol (OpenAI Codex) <noreply@openai.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
Co-Authored-By: GPT-6.1-sol (OpenAI Codex) <noreply@openai.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
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.
Resolved / Related Issues
Steps used to test these changes
dotnet build tests/Files.Platform.Tests -warnaserroranddotnet test(1135 passed), including newNixElevationTrustTests(sticky root store accepted only with immutable root-owned entries; user-owned/writable store entries, broken or mismatched deployment manifest/policy, retained old authorization and untrusted symlink traversal all fail closed; exact store helper is previewed/invoked and an old-generation plan is refused).python3 -m unittest scripts/linux/tests/test_host_root_helper.py(4 passed).nix flake check/ NixOS module evaluation (no nix or nix-portable available to the agent), and no NixOS VM or headless polkit run. Please runnix flake checkbefore merging.What changed
nixosModules.defaultwith opt-inprograms.linuxfiles.rootActions(default off): packaged AOT helper kept, polkit action with exact storeexec.path,/etc/linuxfiles/root-actionsmanifest, pkexec wrapper (enablePkexecWrapperorsecurity.wrappers.pkexec; helper is never setuid). Plainnix run/profile keeps all root actions disabled./run/wrappers/binand/run/current-system/sw/binsearched first; every symlink hop and target must be root-owned; only/nix/storeitself (root, sticky, not other-writable) is exempt from the writable check, entries below must be root-owned and not user/group/other writable. Existing checks kept. An installed manifest is authoritative (no fallback to/usr/libafter a broken generation).scripts/linux/install-host-root-helper.py(explicit sha256, literal argv, never alters Flatpak/AppImage sandbox) plus README/packaging.md.Residual risks
/nix/storeis group-writable bynixbld; members of that group (build users) are trusted by this exception. Single-user/user-owned stores are rejected (root actions off).🤖 Generated with Claude Code