1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
Phil Estes c18e7f3a04 Change subordinate range-owning user to be a system user
Change user/group creation to use flags to adduser/useradd to enforce it
being a system user. Use system user defaults that auto-create a
matching group. These changes allow us to remove all group creation
code, and in doing so we also removed the code that finds available uid,
gid integers and use post-creation query to gather the system-generated
uid and gid.

The only added complexity is that today distros don't auto-create
subordinate ID ranges for a new ID if it is a system ID, so we now need
to handle finding a free range and then calling the `usermod` tool to
add the ranges for that ID. Note that this requires the distro supports
the `-v` and `-w` flags on `usermod` for subordinate ID range additions.

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
2016-03-16 18:44:10 -04:00
..
aaparser apparmor: fix version checks to work properly 2016-02-15 20:36:07 +11:00
archive Fix CopyWithTar creation of new destination dir as remapped root 2016-03-12 23:05:45 -05:00
authorization Call plugins with custom transports. 2016-03-02 12:54:53 -05:00
broadcaster Improved push and pull with upload manager and download manager 2015-12-09 19:13:35 -08:00
chrootarchive Remove flush(stdout) in pkg/chrootarchive/diff_unix.go and improve error reporting of flush() to fix #21103 2016-03-15 10:29:51 -07:00
devicemapper loopback: separate loop logic from devicemapper 2015-12-18 10:57:43 -05:00
directory Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
discovery Use net.JoinHostPort to handle address format. 2016-03-01 17:27:30 -08:00
filenotify add file poller panic fix from 1.10.2 2016-02-24 10:17:29 -05:00
fileutils Windows CI: Turn off failing unit test pkg\fileutils 2016-03-02 19:05:33 -08:00
gitutils Windows CI: Unit tests - port pkg\gitutils 2016-02-11 18:19:17 -08:00
graphdb Windows CI: Turn off failing unit tests pkg\graphdb 2016-03-02 19:27:41 -08:00
homedir Revert "resolve the config file from the sudo user" 2016-02-29 13:51:43 +01:00
httputils Fix some typos in comments and strings 2016-02-22 20:27:15 +01:00
idtools Change subordinate range-owning user to be a system user 2016-03-16 18:44:10 -04:00
integration Windows CI: Turn off failing unit tests pkg\integration 2016-03-02 19:37:18 -08:00
ioutils Cleanup WriteFlusher 2016-02-09 14:02:26 -05:00
jsonlog Move timeutils functions to the only places where they are used. 2015-12-15 14:56:14 -05:00
jsonmessage Send push information to trust code out-of-band 2016-01-08 10:57:50 -08:00
locker Fix typos found across repository 2015-12-13 18:04:12 +02:00
longpath Windows: Fixing longpath hanlding of UNC paths. 2015-09-30 19:36:08 -07:00
loopback loopback: separate loop logic from devicemapper 2015-12-18 10:57:43 -05:00
mflag Merge pull request #19517 from calavera/validate_config_keys 2016-01-22 15:01:29 -05:00
mount Windows CI: Unit Test - pkg/mount is Unix specific 2016-02-10 18:09:15 -08:00
namesgenerator Adding biologist Christiane Nüsslein Volhard and AI pioneer Marvin Minsky 2016-01-28 14:33:58 +00:00
parsers Remove unused parser functions that were replaced by go-connections/nat. 2015-12-22 19:06:49 -05:00
pidfile fix pidfile, pid is num use '/proc + string(pid)' can't found it 2016-01-14 16:03:33 +08:00
platform Merge pull request #18090 from vdemeester/17478-follow-up-cleanup-pkg-platform 2015-11-19 14:00:23 -05:00
plugins Call plugins with custom transports. 2016-03-02 12:54:53 -05:00
pools Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
progress Send push information to trust code out-of-band 2016-01-08 10:57:50 -08:00
promise Move Go() promise-like func from utils to pkg/promise 2014-09-29 23:16:27 -07:00
proxy Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
pubsub Revert "use pubsub instead of filenotify to follow json logs" 2016-02-23 21:43:52 -05:00
random Fix typos found across repository 2015-12-13 18:04:12 +02:00
reexec Fix typos found across repository 2015-12-13 18:04:12 +02:00
registrar Build names and links at runtime 2016-01-07 14:10:42 -05:00
signal Define all of the signals defined by kill -l 2015-11-12 09:55:18 -05:00
stdcopy Make stdcopy.stdWriter goroutine safe. 2016-02-26 16:51:18 -05:00
streamformatter Fix flaky test TestJSONFormatProgress (#21124) 2016-03-14 16:00:12 +00:00
stringid Fix typos found across repository 2015-12-13 18:04:12 +02:00
stringutils Move StrSlice to types. 2015-12-22 13:31:43 -05:00
symlink Windows CI: Turning off pkg\symlink unit testing 2016-02-29 13:10:50 -08:00
sysinfo pids limit support 2016-03-08 07:55:01 -08:00
system fix typos 2016-03-11 23:22:16 +08:00
tailfile typofix - https://github.com/vlajos/misspell_fixer 2015-08-07 23:25:49 +01:00
tarsum fix common misspell 2016-02-11 15:49:36 -08:00
term Merge pull request #20587 from MHBauer/termfixes 2016-03-01 11:37:26 -05:00
tlsconfig Fix golint warnings 2015-11-02 08:02:25 -08:00
truncindex Do not rely on string comparison in truncindex 2015-11-04 11:34:05 -08:00
urlutil Fix 'tcp+tls' protocol not being accepted 2016-02-08 17:34:39 +00:00
useragent Fix typos found across repository 2015-12-13 18:04:12 +02:00
version pkg: version: add String method 2015-12-17 11:52:23 +01:00
README.md

pkg/ is a collection of utility packages used by the Docker project without being specific to its internals.

Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Docker organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!