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
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
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
README.md
time_linux.go
time_unsupported.go
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
wrap_test.go

This code provides helper functions for dealing with archive files.