1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/archive
Serge Hallyn 617c352e92 Don't create devices if in a user namespace
If we are running in a user namespace, don't try to mknod as
it won't be allowed.  libcontainer will bind-mount the host's
devices over files in the container anyway, so it's not needed.

The chrootarchive package does a chroot (without mounting /proc) before
its work, so we cannot check /proc/self/uid_map when we need to.  So
compute it in advance and pass it along with the tar options.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2016-08-12 16:26:58 -04:00
..
testdata Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
archive.go Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
archive_linux.go Fix files in subdirectories creating bad whiteout 2016-07-26 12:03:55 -07:00
archive_other.go Update archive package to support overlay whiteouts 2016-06-08 00:10:16 -07:00
archive_test.go Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
archive_unix.go Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
archive_unix_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
archive_windows.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
archive_windows_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
changes.go Update archive package to support overlay whiteouts 2016-06-08 00:10:16 -07:00
changes_linux.go Update archive package to support overlay whiteouts 2016-06-08 00:10:16 -07:00
changes_other.go Windows: Docker build starting to work 2015-06-17 10:41:28 -07:00
changes_posix_test.go Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
changes_test.go fix typos 2016-06-02 17:17:22 +08:00
changes_unix.go Fixes #9283. Consider hardlinks in image size. 2015-10-17 12:24:05 +02:00
changes_windows.go Fixes #9283. Consider hardlinks in image size. 2015-10-17 12:24:05 +02:00
copy.go fix typos 2016-07-23 11:32:23 +08:00
copy_unix.go Windows - make docker cp functional 2015-08-06 11:22:38 -07:00
copy_unix_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
copy_windows.go Windows - make docker cp functional 2015-08-06 11:22:38 -07:00
diff.go Don't create devices if in a user namespace 2016-08-12 16:26:58 -04:00
diff_test.go Windows CI: test-unit on pkg\archive part 2 2016-02-12 15:40:41 -08:00
example_changes.go archive: example app for diffing directories 2014-10-29 14:52:59 -04:00
README.md Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
time_linux.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
time_unsupported.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
utils_test.go Enable golint in pkg/arcive 2015-08-04 09:52:54 +08:00
whiteouts.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
wrap.go Finally remove our copy of "archive/tar" now that Go 1.4 is the minimum! 2015-05-01 16:01:10 -06:00
wrap_test.go Add coverage on pkg/archive 2015-04-24 17:03:33 +02:00

This code provides helper functions for dealing with archive files.