Skip to content

usr-linux: copy into the extracted rootfs through its real path - #91

Open
daniel-rossier wants to merge 1 commit into
mainfrom
fix/usr-linux-rsync-realpath
Open

daniel-rossier wants to merge 1 commit into
mainfrom
fix/usr-linux-rsync-realpath

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

rsync 3.2.7-1ubuntu1.5 refuses, as root, to follow a symlink owned by an
ordinary user. rootfs/fs is the builder's symlink to WORKDIR/fs, so the
rootfs.cpio deploy stopped with "refusing to follow a symlink owned by an
untrusted user".

Resolve the symlink first and hand rsync the directory.

Reproduced: sudo rsync into a user-owned symlink fails with rsync 3.2.7-1ubuntu1.5 and succeeds into its realpath. Found on the edgem1 CI, where every bare-linux and fc build failed after the update.

rsync 3.2.7-1ubuntu1.5 refuses, as root, to follow a symlink owned by an
ordinary user. rootfs/fs is the builder's symlink to WORKDIR/fs, so the
rootfs.cpio deploy stopped with "refusing to follow a symlink owned by an
untrusted user".

Resolve the symlink first and hand rsync the directory.

This branch has not been deployed

No deployments
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.

1 participant