-
Notifications
You must be signed in to change notification settings - Fork 59
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
aarch64: upgrade causes SELinux mislabeled dtb files in /boot/ostree #1808
Comments
Another thing to note here. It may actually be correct that they are labeled To state it a different way, the problem here is that these files don't match what the policy expects. The fix may be:
Which one of those options is the correct path? I don't know. |
Check on rhel9.4, the dtb files are labeled
|
Run on rawhide, not sure it is the same as #1806 (comment), after run
And do testing according to #1806 (comment), no lucky
|
yes. I think this issue is distinct from #1806 because that one ONLY affects rawhide right now |
You are right, thanks. I think your above comment makes sense to me, need to confirm. |
xref: coreos/fedora-coreos-tracker#1808 For the kernel/initramfs that we copy to `/boot` we use an explicit relabeling today, ignoring the source SELinux context. When we added handling for devicetree it reuse the `copy_dir_recurse` we have for `etc` handling, and that copied the source xattrs. Let's ensure that the devicetree is also `boot_t` by *not* copying xattrs and relying on the default labeling. Signed-off-by: Colin Walters <[email protected]>
Put up ostreedev/ostree#3323 |
xref: coreos/fedora-coreos-tracker#1808 For the kernel/initramfs that we copy to `/boot` we use an explicit relabeling today, ignoring the source SELinux context. When we added handling for devicetree it reuse the `copy_dir_recurse` we have for `etc` handling, and that copied the source xattrs. Let's ensure that the devicetree is also `boot_t` by *not* copying xattrs and relying on the default labeling. Signed-off-by: Colin Walters <[email protected]>
@dustymabe , the above PR is merged, can I close this now or hold until new ostree release (or backport the PR to rawhide/f41)? |
@HuijingHei I would prefer to leave this open until the fix has made it into FCOS. Once the fix does land we can revert the dtb exception part of coreos/fedora-coreos-config#3192 I think.
either one of those options works for me :) |
OK, then will do the backport, thanks! |
@dustymabe there is the new f41 build https://bodhi.fedoraproject.org/updates/FEDORA-2024-aea0210a8d which includes the fixed patch, should I add a fast-track in next-devel ? (And also remove the the dtb exception part in next-nevel branch) |
We'll be promoting |
xref to coreos/fedora-coreos-tracker#1808 PR ostreedev#3323 fixes the new deployment, but keep the incorrect selinux label for the old deplyment.
|
The fix for this went into |
The fix for this went into |
The fix for this went into |
On upgrades it appears files in dtb files in /boot on aarch64 systems have the wrong context. It looks like the context matches where the files are copied from rather than the paths they are being copied to.
When booted from the fresh
40.20240825.3.0
stable
image (i.e. the release from a few weeks back):After upgrade to latest stable:
So they are
modules_object_t
versus the policy expecting them to beboot_t
. Not sure if this is a real problem or not.Note I think this happens even on upgrades where there is no kernel update.
The text was updated successfully, but these errors were encountered: