-
Notifications
You must be signed in to change notification settings - Fork 60
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]>
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: