Skip to content

Update vendor'd libcontainer and update to use new user interface.#9023

Merged
unclejack merged 2 commits intomoby:masterfrom
cyphar:libcontainer-update-to-new-interface
Nov 8, 2014
Merged

Update vendor'd libcontainer and update to use new user interface.#9023
unclejack merged 2 commits intomoby:masterfrom
cyphar:libcontainer-update-to-new-interface

Conversation

@cyphar
Copy link
Copy Markdown
Contributor

@cyphar cyphar commented Nov 7, 2014

This patchset transitions the use of the old libcontainer/user interface
to the new and improved libcontainer/user interface (also updating the
hack/vendor.sh script to use libcontainer:4ae31b6ceb2c2557c9f05f42da61b0b808faa5a4).

Signed-off-by: Aleksa Sarai cyphar@cyphar.com (github: cyphar)

/cc @vieux @tianon

[This is a dup of docker#7591, but my commits won't update when --forceing my rebases, so just use this one instead.]

@cyphar cyphar changed the title Transition usage of libcontainer/user to use new interface Update vendor'd libcontainer and update to use new user interface. Nov 7, 2014
hack/vendor.sh Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated formatting changes... tsk tsk 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Haha, sorry. I set vim to strip whitespace when a file is saved. 😜

@cyphar cyphar force-pushed the libcontainer-update-to-new-interface branch 2 times, most recently from fb272d0 to 1e26e50 Compare November 7, 2014 22:52
This patch updates the vendor'd libcontainer version, so that Docker can
take advantage of the updates to the `user` API.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (github: cyphar)
@cyphar cyphar force-pushed the libcontainer-update-to-new-interface branch from 1e26e50 to 5e0c889 Compare November 7, 2014 23:00
This patch fixes the compilation errors in Docker due to changes in the
libcontainer/user API. There is no functionality change due to this
patch.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (github: cyphar)
@cyphar cyphar force-pushed the libcontainer-update-to-new-interface branch from 5e0c889 to 3ac4aa0 Compare November 7, 2014 23:03
@tianon
Copy link
Copy Markdown
Member

tianon commented Nov 7, 2014

hack and vendor changes LGTM

cc @tiborvass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what does GetGroupFile error message look like?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@proppy "user lookup: operating system does not provide passwd-formatted data" is the only error produced by the user/lookup API.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just a optional suggestion, that you may want to add more context to the error (i.e: mentioning GetGroupFile). But that's up to you really.

LGTM for api/server

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@proppy The error was written like that because if an operating system doesn't provide a /etc/group-like file it doesn't provide any passwd-formatted data. There's nothing unique to the error about GetGroupFile.

@crosbymichael
Copy link
Copy Markdown
Contributor

LGTM

@cyphar
Copy link
Copy Markdown
Contributor Author

cyphar commented Nov 8, 2014

/cc @unclejack @tiborvass

@unclejack
Copy link
Copy Markdown
Contributor

LGTM

unclejack added a commit that referenced this pull request Nov 8, 2014
…face

Update vendor'd `libcontainer` and update to use new `user` interface.
@unclejack unclejack merged commit b18efee into moby:master Nov 8, 2014
@cyphar cyphar deleted the libcontainer-update-to-new-interface branch November 8, 2014 14:32
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.

5 participants