deploy: Don't copy xattrs for devicetree
authorColin Walters <walters@verbum.org>
Fri, 18 Oct 2024 12:41:05 +0000 (08:41 -0400)
committerColin Walters <walters@verbum.org>
Fri, 18 Oct 2024 15:32:42 +0000 (11:32 -0400)
commit72202df98ff696a5858f50eb69b9eb05df11b104
treed406d35e04df233e193b75b8d8472e02e2b2be2e
parentf7018d84de4cfae062595d43abe62e35ec9d3188
deploy: Don't copy xattrs for devicetree

xref: https://github.com/coreos/fedora-coreos-tracker/issues/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 <walters@verbum.org>
src/libostree/ostree-sysroot-deploy.c