Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use symlink xattr functions from x/sys/unix #1470

Merged
merged 2 commits into from
Jun 2, 2017
Merged

Use symlink xattr functions from x/sys/unix #1470

merged 2 commits into from
Jun 2, 2017

Conversation

tklauser
Copy link
Contributor

Update x/sys/unix to get the symlink xattr syscall wrappers Lgetxattr, Llistxattr and Lsetxattr (introduced in
golang/sys@b90f89a) and switch libcontainer to use these instead of providing own wrappers.

tklauser added 2 commits May 30, 2017 09:23
…8594

Update golang.org/x/sys to get the Lgetxattr, Llistxattr, Lremovexattr
and Lsetxattr syscall wrappers. These will be used in a successive
commit to replace the wrappers in libcontainer/system/xattr_linux.go.

Signed-off-by: Tobias Klauser <[email protected]>
Use the symlink xattr syscall wrappers Lgetxattr, Llistxattr and
Lsetxattr from x/sys/unix (introduced in
golang/sys@b90f89a) instead of
providing own wrappers. Leave the functionality of system.Lgetxattr
intact with respect to the retry with a larger buffer, but switch it to
use unix.Lgetxattr.

Signed-off-by: Tobias Klauser <[email protected]>
@cyphar
Copy link
Member

cyphar commented Jun 2, 2017

LGTM. I should probably also move umoci to use golang.org/x/sys/unix...

Approved with PullApprove

@crosbymichael
Copy link
Member

crosbymichael commented Jun 2, 2017

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 18f336d into opencontainers:master Jun 2, 2017
@tklauser tklauser deleted the x-sys-unix-symlink-xattrs branch June 6, 2017 06:33
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.

3 participants