Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rhcos-4.16] overlay.d: add 07fix-selinux-labels overlay #3185

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

dustymabe
Copy link
Member

/boot/efi and /sysroot dir and subfiles are unlabeled_t since
40.20240504.3.0. This is likely due to some missing scaffolding
in the OSBuild software and definitions that we started using in
[1]. These issues [2] [3] were addressed in [4] for new image
builds, but we still need to fix upgrading systems, which we
do here in this migration script.

Note that we also fix a few files in /boot that were left
unlabeled by rdcore [5] while we are in here.

[1] coreos/fedora-coreos-tracker#1653.
[2] coreos/fedora-coreos-tracker#1771
[3] coreos/fedora-coreos-tracker#1772
[4] coreos/coreos-assembler#3885
[5] coreos/fedora-coreos-tracker#1770

Co-authored-by: Dusty Mabe [email protected]
(cherry picked from commit 2e355fd)

jbtrystram and others added 3 commits September 27, 2024 21:18
/boot/efi and /sysroot dir and subfiles are unlabeled_t since
40.20240504.3.0. This is likely due to some missing scaffolding
in the OSBuild software and definitions that we started using in
[1]. These issues [2] [3] were addressed in [4] for new image
builds, but we still need to fix upgrading systems, which we
do here in this migration script.

Note that we also fix a few files in /boot that were left
unlabeled by `rdcore` [5] while we are in here.

[1] coreos/fedora-coreos-tracker#1653.
[2] coreos/fedora-coreos-tracker#1771
[3] coreos/fedora-coreos-tracker#1772
[4] coreos/coreos-assembler#3885
[5] coreos/fedora-coreos-tracker#1770

Co-authored-by: Dusty Mabe <[email protected]>
(cherry picked from commit 2e355fd)
This adds a unlabeled and mislabeled files test and also adds
code to the extended upgrade test to verify there aren't any
suprises there either.

(cherry picked from commit 01c70bd)
On every boot, the `/var/mnt` directory *in the deployment root*
(i.e. not on top of any `/var` bind-mount/filesystem mount) would
get recreated and be unlabeled. After a lot of digging and busting out
systemtap, this turned out to be systemd doing this as part of switching
root as a temporary mount point.

In systemd v254+, this behaviour was changed to no longer require this
directory:

systemd/systemd@f2c1d49

For completeness, update the comment in this test to reflect these
findings.

(cherry picked from commit 53088cb)
@dustymabe dustymabe enabled auto-merge (rebase) September 28, 2024 02:30
Copy link
Member

@HuijingHei HuijingHei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dustymabe dustymabe merged commit d51f94c into coreos:rhcos-4.16 Sep 30, 2024
1 check passed
@dustymabe dustymabe deleted the dusty-rhcos416-backports branch September 30, 2024 06:02
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.

4 participants