1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Find a file
Justin Cormack 15ff09395c
If container will run as non root user, drop permitted, effective caps early
As soon as the initial executable in the container is executed as a non root user,
permitted and effective capabilities are dropped. Drop them earlier than this, so
that they are dropped before executing the file. The main effect of this is that
if `CAP_DAC_OVERRIDE` is set (the default) the user will not be able to execute
files they do not have permission to execute, which previously they could.

The old behaviour was somewhat surprising and the new one is definitely correct,
but it is not in any meaningful way exploitable, and I do not think it is
necessary to backport this fix. It is unlikely to have any negative effects as
almost all executables have world execute permission anyway.

Use the bounding set not the effective set as the canonical set of capabilities, as
effective will now vary.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2018-03-19 14:45:27 -07:00
.github
api Automated migration using 2018-03-16 11:03:43 -04:00
builder Post migration assertion fixes 2018-03-16 11:03:46 -04:00
cli
client Post migration assertion fixes 2018-03-16 11:03:46 -04:00
cmd/dockerd Automated migration using 2018-03-16 11:03:43 -04:00
container Automated migration using 2018-03-16 11:03:43 -04:00
contrib
daemon If container will run as non root user, drop permitted, effective caps early 2018-03-19 14:45:27 -07:00
distribution Automated migration using 2018-03-16 11:03:43 -04:00
dockerversion
docs Adjust minimum API version for templated configs/secrets 2018-02-21 15:23:00 +01:00
errdefs Fix definition of ErrSystem type 2018-03-05 23:42:23 +01:00
hack Update libnetwork to fix stale HNS endpoints on Windows 2018-03-14 23:45:58 +01:00
image Post migration assertion fixes 2018-03-16 11:03:46 -04:00
integration Add the missing call to setupTest to TestNetworkLoopbackNat test function, to avoid leaving behind test containers 2018-03-19 10:56:13 -04:00
integration-cli Post migration assertion fixes 2018-03-16 11:03:46 -04:00
internal Post migration assertion fixes 2018-03-16 11:03:46 -04:00
layer Remove metadata store interface 2018-03-06 10:42:00 -08:00
libcontainerd Automated migration using 2018-03-16 11:03:43 -04:00
migrate/v1
oci Add /proc/keys to masked paths 2018-02-21 16:23:34 +00:00
opts Automated migration using 2018-03-16 11:03:43 -04:00
pkg Merge pull request #36617 from Microsoft/jjh/kernel-registry 2018-03-19 11:47:17 +01:00
plugin Merge pull request #36327 from Microsoft/jjh/block-pulling-uplevel 2018-03-05 15:12:52 -08:00
profiles If container will run as non root user, drop permitted, effective caps early 2018-03-19 14:45:27 -07:00
project
reference Automated migration using 2018-03-16 11:03:43 -04:00
registry Automated migration using 2018-03-16 11:03:43 -04:00
reports
restartmanager
runconfig Automated migration using 2018-03-16 11:03:43 -04:00
vendor Update vendor 2018-03-16 10:54:54 -04:00
volume Post migration assertion fixes 2018-03-16 11:03:46 -04:00
.DEREK.yml
.dockerignore
.gitignore
.mailmap Update authors 2018-02-21 21:12:31 +01:00
AUTHORS Update authors 2018-02-21 21:12:31 +01:00
CHANGELOG.md
codecov.yml
CONTRIBUTING.md
Dockerfile Multiarch support for Dockerfile 2018-03-12 02:05:01 +00:00
Dockerfile.e2e Add busybox:latest into the frozen images 2018-02-27 06:28:29 +00:00
Dockerfile.simple Split binary installers/commit scripts 2018-02-21 15:39:24 -05:00
Dockerfile.windows
LICENSE
MAINTAINERS
Makefile
NOTICE
poule.yml
README.md
ROADMAP.md
TESTING.md Update testing doc 2018-03-16 11:03:47 -04:00
vendor.conf Update vendor 2018-03-16 10:54:54 -04:00
VENDORING.md

The Moby Project

Moby Project logo

Moby is an open-source project created by Docker to enable and accelerate software containerization.

It provides a "Lego set" of toolkit components, the framework for assembling them into custom container-based systems, and a place for all container enthusiasts and professionals to experiment and exchange ideas. Components include container build tools, a container registry, orchestration tools, a runtime and more, and these can be used as building blocks in conjunction with other tools and projects.

Principles

Moby is an open project guided by strong principles, aiming to be modular, flexible and without too strong an opinion on user experience. It is open to the community to help set its direction.

  • Modular: the project includes lots of components that have well-defined functions and APIs that work together.
  • Batteries included but swappable: Moby includes enough components to build fully featured container system, but its modular architecture ensures that most of the components can be swapped by different implementations.
  • Usable security: Moby provides secure defaults without compromising usability.
  • Developer focused: The APIs are intended to be functional and useful to build powerful tools. They are not necessarily intended as end user tools but as components aimed at developers. Documentation and UX is aimed at developers not end users.

Audience

The Moby Project is intended for engineers, integrators and enthusiasts looking to modify, hack, fix, experiment, invent and build systems based on containers. It is not for people looking for a commercially supported system, but for people who want to work and learn with open source code.

Relationship with Docker

The components and tools in the Moby Project are initially the open source components that Docker and the community have built for the Docker Project. New projects can be added if they fit with the community goals. Docker is committed to using Moby as the upstream for the Docker Product. However, other projects are also encouraged to use Moby as an upstream, and to reuse the components in diverse ways, and all these uses will be treated in the same way. External maintainers and contributors are welcomed.

The Moby project is not intended as a location for support or feature requests for Docker products, but as a place for contributors to work on open source code, fix bugs, and make the code more useful. The releases are supported by the maintainers, community and users, on a best efforts basis only, and are not intended for customers who want enterprise or commercial support; Docker EE is the appropriate product for these use cases.


Legal

Brought to you courtesy of our legal counsel. For more context, please see the NOTICE document in this repo.

Use and transfer of Moby may be subject to certain restrictions by the United States and other governments.

It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.

For more information, please see https://www.bis.doc.gov

Licensing

Moby is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.