Skip to content

replace pkg/symlink with moby/sys/symlink#4677

Merged
AkihiroSuda merged 1 commit intocontainerd:masterfrom
thaJeztah:moby_sys_symlink
Nov 4, 2020
Merged

replace pkg/symlink with moby/sys/symlink#4677
AkihiroSuda merged 1 commit intocontainerd:masterfrom
thaJeztah:moby_sys_symlink

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

follow-up to #4631

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member Author

@dims @dmcgowan ptal

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 29, 2020

Build succeeded.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@Zyqsempai Zyqsempai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
wondering what the difference of opinion is between moby and golang https://golang.org/src/path/filepath/symlink_windows.go implementations

@thaJeztah
Copy link
Copy Markdown
Member Author

wondering what the difference of opinion is between moby and golang https://golang.org/src/path/filepath/symlink_windows.go implementations

If I recall correctly, this package was created to mitigated a "break out", where symlinks could be abused to traverse directories outside of the expected scope (moby/moby#3184). As to the platform-specific handling; I was actually eyeing that (didn't dig deep yet); and we should look at those, and see if they make sense to upstream (either golang stlib, or something like golang.org/x/sys/windows.

@thaJeztah
Copy link
Copy Markdown
Member Author

@dmcgowan this LGTY?

@AkihiroSuda AkihiroSuda merged commit ef79c99 into containerd:master Nov 4, 2020
@thaJeztah thaJeztah deleted the moby_sys_symlink branch November 4, 2020 18:47
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.

6 participants