Repository navigation
test: add manual Fedora SELinux janitor regression harness - #851
Closed
Paco Huelsz (frhuelsz) wants to merge 1 commit into
Closed
Paco Huelsz (frhuelsz) wants to merge 1 commit into
Paco Huelsz (frhuelsz) wants to merge 1 commit into
Conversation
Measure janitor denial and removal on a disposable enforcing VM, with a bounded fake-IC probe for stale tools-dir pre-clean. Document that full IC output and production liveness safety remain untested. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
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.
Summary
cleanagainst a disposable root-owneduser_home_tartifact, plus the stale tools-dir pre-IC removal through actualtailor buildwith a deliberately non-IC small toolchain image. All binds stay inside a disposable guest workspace; no automatic:z/:Zrelabeling or host-root bind.Measured on Fedora 43 (SELinux Enforcing)
With a rootful Podman API accessible to a non-root guest user, on the same disposable VM:
clean base-osexited 1 withPermission denied; final janitor-option prototype8c6fdedd:clean base-osexited 0, removed the root-owned artifact, and left its parent label unchanged.build preic: exited 1 at janitor stale tools-dir pre-clean (Permission denied, marker remained). Prototypebuild preic: removed the stale marker, then exited 1 later as intended because the fake IC image lackscustomize. The Python harness distinguishes these failure locations and exits 0 for the expected result.Not proven: a successful real Image Customizer build, post-build chown, rootless Podman, Docker, remote daemons, or safety with live loop devices/mounts. The fixture-side local liveness scan is not a production guard or a remote-daemon safety guarantee. AVC-log absence is not used as evidence.
Companion janitor-option implementation: #852. The
--expect-fixedmodes target a binary with that separate fix; this harness PR remains independently based onmain.Validation / CI plan
unittestcases pass; both Python files parse and the harness--helpworks. README workflow reference and public-content scan checked.just validateis unavailable (this checkout has no justfile).getenforce=Enforcingand run both--expect-fixedmodes; do not run this on an Ubuntu container runner.