runc/user
Aleksa Sarai 50b68c9b4f user: *: refactor and expand libcontainer/user API
This patch refactors most of GetUserGroupSupplementaryHome and its
signature, to make using it much simpler. The private parsing ftunctions
have also been exposed (parsePasswdFile, parseGroupFile) to allow custom
data source to be used (increasing the versatility of the user/ tools).

In addition, file path wrappers around the formerly private API
functions have been added to make usage of the API for callers easier if
the files that are being parsed are on the filesystem (while the
io.Reader APIs are exposed for non-traditional usecases).

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (github: cyphar)
2014-11-07 11:07:21 +11:00
..
MAINTAINERS Move "pkg/user" into libcontainer and add support for GetUserGroupSupplementary to return "Home" too 2014-07-29 10:59:18 -06:00
user.go user: *: refactor and expand libcontainer/user API 2014-11-07 11:07:21 +11:00
user_test.go user: *: refactor and expand libcontainer/user API 2014-11-07 11:07:21 +11:00