Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Go to file
Stanislav Levin 5d3a9e4319
seccomp: Whitelist `clock_adjtime`
This only allows making the syscall. CAP_SYS_TIME is still required
for time adjustment (enforced by the kernel):

```
kernel/time/posix-timers.c:

1112 SYSCALL_DEFINE2(clock_adjtime, const clockid_t, which_clock,
1113                 struct __kernel_timex __user *, utx)
...
1121         err = do_clock_adjtime(which_clock, &ktx);

1100 int do_clock_adjtime(const clockid_t which_clock, struct __kernel_timex * ktx)
1101 {
...
1109         return kc->clock_adj(which_clock, ktx);

1299 static const struct k_clock clock_realtime = {
...
1304         .clock_adj              = posix_clock_realtime_adj,

188 static int posix_clock_realtime_adj(const clockid_t which_clock,
189                                     struct __kernel_timex *t)
190 {
191         return do_adjtimex(t);

kernel/time/timekeeping.c:

2312 int do_adjtimex(struct __kernel_timex *txc)
2313 {
...
2321         /* Validate the data before disabling interrupts */
2322         ret = timekeeping_validate_timex(txc);

2246 static int timekeeping_validate_timex(const struct __kernel_timex *txc)
2247 {
2248         if (txc->modes & ADJ_ADJTIME) {
...
2252                 if (!(txc->modes & ADJ_OFFSET_READONLY) &&
2253                     !capable(CAP_SYS_TIME))
2254                         return -EPERM;
2255         } else {
2256                 /* In order to modify anything, you gotta be super-user! */
2257                 if (txc->modes && !capable(CAP_SYS_TIME))
2258                         return -EPERM;

```

Fixes: https://github.com/moby/moby/issues/40919
Signed-off-by: Stanislav Levin <slev@altlinux.org>
2020-05-08 12:33:25 +03:00
.github Remove refs to jhowardmsft from .go code 2019-09-25 10:51:18 -07:00
api swagger: reformat, and wrap to ~80-chars 2020-05-02 18:10:28 +02:00
builder Replace errors.Cause() with errors.Is() / errors.As() 2020-04-29 00:28:41 +02:00
cli remove uses of deprecated pkg/term 2020-04-21 16:29:27 +02:00
client Replace errors.Cause() with errors.Is() / errors.As() 2020-04-29 00:28:41 +02:00
cmd/dockerd Merge pull request #40662 from AkihiroSuda/cgroup2-dockerinfo 2020-04-29 22:57:00 +02:00
container Replace errors.Cause() with errors.Is() / errors.As() 2020-04-29 00:28:41 +02:00
contrib rootless: graduate from experimental 2020-04-07 00:59:15 +09:00
daemon Merge pull request #40920 from cpuguy83/log_rotate_error_handling 2020-05-07 14:45:42 -07:00
distribution Move schema1 deprecation notice 2020-03-12 11:17:20 -07:00
dockerversion Use -X ldflags to set dockerversion package vars 2019-12-02 10:21:41 -08:00
docs cgroup2: implement `docker info` 2020-04-17 07:20:01 +09:00
errdefs bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
hack Merge pull request #40672 from tiborvass/19.03.8-forwardport-to-master 2020-05-08 08:11:03 +09:00
image bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
integration support `--privileged --cgroupns=private` on cgroup v1 2020-04-21 23:11:32 +09:00
integration-cli Replace errors.Cause() with errors.Is() / errors.As() 2020-04-29 00:28:41 +02:00
internal/test/suite integration-cli: move each test suite to its own TestX testing function 2019-09-18 18:26:36 +00:00
layer Remove "could not get checksum with tar-split" debug message 2020-03-06 12:45:15 +01:00
libcontainerd cgroup2: implement `docker stats` 2020-04-02 17:51:34 +09:00
oci Move DefaultCapabilities() to caps package 2019-11-14 21:13:16 +02:00
opts enforce reserve internal labels. 2020-02-12 12:03:35 +08:00
patches Remove blurb about fixed in go1.11 in patch file 2020-04-24 11:23:14 -07:00
pkg Merge pull request #40868 from thaJeztah/what_is_the_cause 2020-05-07 11:33:26 -07:00
plugin Replace errors.Cause() with errors.Is() / errors.As() 2020-04-29 00:28:41 +02:00
profiles seccomp: Whitelist `clock_adjtime` 2020-05-08 12:33:25 +03:00
project LCOW: add "no_lcow" build tag to allow disabling lcow 2020-04-02 19:54:16 +02:00
reference fix goimports 2020-02-11 22:16:54 +09:00
registry vendor: update buildkit to ae7ff174 2020-04-14 08:26:07 -07:00
reports Fix typos 2018-05-16 09:15:43 +08:00
restartmanager unconvert: remove unnescessary conversions 2019-09-18 12:57:33 +02:00
rootless rootless: support `--exec-opt native.cgroupdriver=systemd` 2020-02-14 15:32:31 +09:00
runconfig cgroup2: implement `docker info` 2020-04-17 07:20:01 +09:00
testutil remove uses of deprecated pkg/term 2020-04-21 16:29:27 +02:00
vendor Merge pull request #40672 from tiborvass/19.03.8-forwardport-to-master 2020-05-08 08:11:03 +09:00
volume Replace errors.Cause() with errors.Is() / errors.As() 2020-04-29 00:28:41 +02:00
.DEREK.yml Update .DEREK.yml 2019-05-06 13:27:04 -07:00
.dockerignore update .dockerignore to prevent '-unsupported' builds 2020-01-13 12:55:15 +01:00
.gitignore Use -X ldflags to set dockerversion package vars 2019-12-02 10:21:41 -08:00
.mailmap Update mailmap and authors 2019-09-30 19:12:18 +02:00
AUTHORS Update mailmap and authors 2019-09-30 19:12:18 +02:00
CHANGELOG.md Fix some typos 2018-09-07 13:13:47 +08:00
CONTRIBUTING.md Update CONTRIBUTING.md to have an option to keep name anonymous if requested 2019-07-15 16:04:11 +02:00
Dockerfile Merge pull request #40672 from tiborvass/19.03.8-forwardport-to-master 2020-05-08 08:11:03 +09:00
Dockerfile.buildx Dockerfile.buildx: bump to Go 1.13.10 2020-05-02 19:03:17 +02:00
Dockerfile.e2e Bump Golang 1.13.10 2020-04-09 21:58:09 +02:00
Dockerfile.simple Bump Golang 1.13.10 2020-04-09 21:58:09 +02:00
Dockerfile.windows Bump Golang 1.13.10 2020-04-09 21:58:09 +02:00
Jenkinsfile Jenkinsfile: remove redundant DOCKER_EXPERIMENTAL 2020-04-07 00:59:15 +09:00
LICENSE Update LICENSE 2018-09-12 14:27:53 +01:00
MAINTAINERS Add myself as a curator 2020-01-09 15:03:38 -05:00
Makefile Rename newer build_shell target to build 2020-04-02 15:48:43 -07:00
NOTICE switch kr/pty to creack/pty v1.1.7 2019-07-29 16:59:08 -07:00
README.md Add "Lego set" back in README.md 2017-10-10 14:10:39 +00:00
ROADMAP.md Fix some typos in ROADMAP.md 2019-01-25 14:27:13 +08:00
SECURITY.md Update SECURITY.md to have an option to keep name anonymous if requested. 2019-06-18 16:37:16 +00:00
TESTING.md Bump golang 1.12.8 (CVE-2019-9512, CVE-2019-9514) 2019-08-14 02:27:05 +02:00
VENDORING.md fix the bare url and the Summary of http://semver.org 2017-01-17 16:20:11 +08:00
codecov.yml Add code coverage report and codecov config 2018-01-16 16:50:56 -05:00
poule.yml Poule: remove random assign 2019-09-05 20:57:17 +02:00
vendor.conf Merge pull request #40672 from tiborvass/19.03.8-forwardport-to-master 2020-05-08 08:11:03 +09:00

README.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.