Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Get absolute path of file before checking whitelist#293

Merged
priyawadhwa merged 1 commit intoGoogleContainerTools:masterfrom
priyawadhwa:fedora
Aug 19, 2018
Merged

Get absolute path of file before checking whitelist#293
priyawadhwa merged 1 commit intoGoogleContainerTools:masterfrom
priyawadhwa:fedora

Conversation

@priyawadhwa
Copy link
Copy Markdown
Contributor

@priyawadhwa priyawadhwa commented Aug 17, 2018

Issue 291 pointed out that symlink "../proc/self/mounts" in the fedora image wasn't being extracted properly and kaniko was erroring out.
This is because the file path wasn't absolute so kaniko wasn't recognizing it as a whitelisted path.
With this change, we first resolve a path to it's absolute path before checking the whitelist.

Should fix #291

Issue 291 pointed out that symlink "../proc/self/mounts" in the fedora image wasn't being extracted properly and kaniko was erroring out.
This is because the file path wasn't absolute so kaniko wasn't recognizing it as a whitelisted path.
With this change, we first resolve a path to it's absolute path before checking the whitelist.
@priyawadhwa priyawadhwa merged commit 8bc81fd into GoogleContainerTools:master Aug 19, 2018
@priyawadhwa priyawadhwa deleted the fedora branch August 19, 2018 22:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to build images based on fedora

2 participants