1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
Aleksa Sarai dd340c52cb
apparmor: make pkg/aaparser work on read-only root
This is necessary because normally `apparmor_parser -r` will try to
create a temporary directory on the host (which is not allowed if the
host has a rootfs). However, the -K option bypasses saving things to the
cache (which avoids this issue).

  % apparmor_parser -r /tmp/docker-profile
  mkstemp: Read-only file system
  % apparmor_parser -Kr /tmp/docker-profile
  %

In addition, add extra information to the ensureDefaultAppArmorProfile
errors so that problems like this are easier to debug.

Fixes: 2f7596aaef ("apparmor: do not save profile to /etc/apparmor.d")
Signed-off-by: Aleksa Sarai <asarai@suse.de>
2017-05-18 00:05:13 +10:00
..
aaparser apparmor: make pkg/aaparser work on read-only root 2017-05-18 00:05:13 +10:00
archive Respect tar entries modes when rewriting them on Windows 2017-05-02 11:36:43 +02:00
authorization
broadcaster
chrootarchive pkg/{chroot,}archive: clean up a few small issues 2017-03-30 16:37:54 +03:00
devicemapper Move UdevWait from defer to inline 2017-05-09 13:42:04 -04:00
directory
discovery
filenotify pkg/file{utils,notify}: don't compare to bool 2017-03-30 16:38:01 +03:00
fileutils Enable a unit test on windows. 2017-04-21 12:31:16 -04:00
fsutils
gitutils Allow checking out any ref in gitutils 2017-05-04 14:14:50 -07:00
homedir
httputils
idtools
ioutils pkg/ioutils: remove unused functions 2017-05-10 08:34:16 -07:00
jsonlog pkg/*: clean up a few issues 2017-03-30 16:50:46 +03:00
jsonmessage Update the stream formatter to display custom unit numbers. 2017-05-11 11:13:11 -07:00
listeners Don't error with empty group 2017-04-27 09:26:21 -07:00
locker
longpath
loopback Make pkg/devicemapper and pkg/loopback depend on cgo in build tags 2017-03-29 17:55:42 -07:00
mount Do not remove containers from memory on error 2017-05-05 17:02:04 -04:00
namesgenerator
parsers Fix building client on OpenBSD 2017-03-26 20:47:18 +00:00
pidfile
platform
plugingetter
plugins Merge pull request #32222 from unclejack/small_cleanup 2017-03-30 21:09:39 +02:00
pools
progress Update the stream formatter to display custom unit numbers. 2017-05-11 11:13:11 -07:00
promise
pubsub
random
reexec
registrar pkg/*: clean up a few issues 2017-03-30 16:50:46 +03:00
signal
stdcopy
streamformatter Update the stream formatter to display custom unit numbers. 2017-05-11 11:13:11 -07:00
stringid
stringutils
symlink
sysinfo
system Do not remove containers from memory on error 2017-05-05 17:02:04 -04:00
tailfile
tarsum Add support for COPY from previous rootfs 2017-03-23 15:12:15 -07:00
templates Disable HTML escaping for JSON in formatter 2017-05-09 10:16:10 +03:00
term Update ContainerWait API 2017-05-16 15:11:39 -07:00
testutil Use cli for trusted relate command 2017-04-19 14:04:39 +02:00
tlsconfig
truncindex
urlutil pkg/urlutil: don't compare to bool 2017-03-30 16:38:01 +03:00
useragent
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!