Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,7 @@ jobs:
# Create home dir via tmpfiles.d so it exists at runtime regardless
# of whether bootc initialises the stateroot var from the image's /var.
sudo mkdir -p "${DEP}/etc/tmpfiles.d/"
printf 'Z /var/home/bluefin-test 0700 %d %d -\nd /var/home/bluefin-test 0700 %d %d -\nd /var/home/bluefin-test/.ssh 0700 %d %d -\n' \
"${BFT_UID}" "${BFT_UID}" \
printf 'd /var/home/bluefin-test 0700 %d %d -\nd /var/home/bluefin-test/.ssh 0700 %d %d -\n' \
"${BFT_UID}" "${BFT_UID}" \
"${BFT_UID}" "${BFT_UID}" | \
sudo tee "${DEP}/etc/tmpfiles.d/ci-user.conf"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ read only by `ostree`/`bootc`, which run unconfined.
Never fix a denial by relabeling the whole tree, `-F` over candidate files,
`chcon` to a broad type, `setenforce 0`, or a permissive domain.

The injected `ci-user.conf` uses non-recursive `d` entries for the home and
`.ssh` directories. `d` creates them and adjusts their own mode, ownership
and SELinux label on later boots. Do not add a recursive `Z` home rule: after
the runner container is loaded, it would rewrite Podman storage below the
home on every lifecycle reboot. Run 43526643244 showed it traversing image
hardlinks and generating `systemd_tmpfiles_t` denials while reading
`/proc/sys/fs/protected_hardlinks`. Keep the AVC gate unchanged; fix the
harness traversal, not the candidate policy or the allowlist.

## AVC collection and canary

`selinux_collect_avc.sh` runs in the guest as root and prints AVC/USER_AVC
Expand Down
Loading