Skip to content

Commit

Permalink
deploy: make sure the file/dir xattr matches the target
Browse files Browse the repository at this point in the history
xref to coreos/fedora-coreos-tracker#1808

PR ostreedev#3323 fixes the new
deployment, but keep the incorrect selinux label for the old deplyment.
  • Loading branch information
HuijingHei committed Oct 31, 2024
1 parent a35094a commit 6e69ff0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libostree/ostree-sysroot-deploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,14 @@ copy_dir_recurse (int src_parent_dfd, int dest_parent_dfd, const char *name,
copy_flags, cancellable, error))
return glnx_prefix_error (error, "Copying attributes of %s", name);

{
g_autoptr (GVariant) xattrs = NULL;
if (!glnx_fd_get_all_xattrs (dest_parent_dfd, &xattrs, cancellable, error))
return FALSE;
if (!glnx_fd_set_all_xattrs (dest_dfd, xattrs, cancellable, error))
return FALSE;
}

while (TRUE)
{
struct stat child_stbuf;
Expand Down

0 comments on commit 6e69ff0

Please sign in to comment.