Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Go to file
Jonathan A. Schweder 64e52ff3db Masked /proc/asound
@sw-pschmied originally post this in #38285

While looking through the Moby source code was found /proc/asound to be
shared with containers as read-only (as defined in
https://github.com/moby/moby/blob/master/oci/defaults.go#L128).

This can lead to two information leaks.

---

**Leak of media playback status of the host**

Steps to reproduce the issue:

 - Listen to music/Play a YouTube video/Do anything else that involves
sound output
 - Execute docker run --rm ubuntu:latest bash -c "sleep 7; cat
/proc/asound/card*/pcm*p/sub*/status | grep state | cut -d ' ' -f2 |
grep RUNNING || echo 'not running'"
 - See that the containerized process is able to check whether someone
on the host is playing music as it prints RUNNING
 - Stop the music output
 - Execute the command again (The sleep is delaying the output because
information regarding playback status isn't propagated instantly)
 - See that it outputs not running

**Describe the results you received:**

A containerized process is able to gather information on the playback
status of an audio device governed by the host. Therefore a process of a
container is able to check whether and what kind of user activity is
present on the host system. Also, this may indicate whether a container
runs on a desktop system or a server as media playback rarely happens on
server systems.

The description above is in regard to media playback - when examining
`/proc/asound/card*/pcm*c/sub*/status` (`pcm*c` instead of `pcm*p`) this
can also leak information regarding capturing sound, as in recording
audio or making calls on the host system.

Signed-off-by: Jonathan A. Schweder <jonathanschweder@gmail.com>
2018-11-30 10:03:10 -02:00
.github Remove myself from codeowners of client/** 2018-11-02 21:00:39 -04:00
api Merge pull request #38284 from cpuguy83/context_in_api 2018-11-28 17:00:09 +01:00
builder builder: delete sandbox in a goroutine for performance 2018-11-28 22:55:39 -08:00
cli
client Add an op func to override Client.scheme 2018-11-01 14:07:35 -04:00
cmd/dockerd Properly type handles to prevent overflows 2018-10-10 16:46:37 -07:00
container mount: add BindOptions.NonRecursive (API v1.40) 2018-11-06 17:51:58 +09:00
contrib Add CONFIG_IP_VS_PROTO_TCP, CONFIG_IP_VS_PROTO_UDP, IP_NF_TARGET_REDIRECT to check-config.sh 2018-11-15 11:11:48 +01:00
daemon Add warning to /info if KernelMemoryTCP is not supported 2018-11-27 22:47:39 +01:00
distribution
dockerversion Remove version-checks for containerd and runc 2018-10-04 23:17:13 +02:00
docs Add memory.kernelTCP support for linux 2018-11-26 21:03:08 +00:00
errdefs
hack Windows: Bump busybox to v1.1 2018-11-26 14:50:47 -08:00
image
integration Skip KernelMemoryTCP if version is less than 1.40 2018-11-26 21:04:27 +00:00
integration-cli Windows: Bump busybox to v1.1 2018-11-26 14:50:47 -08:00
internal VXLAN UDP Port configuration support 2018-11-22 17:35:02 -05:00
layer Fix a typos in layer_windows.go 2018-11-18 18:45:06 +08:00
libcontainerd Add --device support for Windows 2018-11-21 15:31:17 -08:00
migrate/v1
oci Masked /proc/asound 2018-11-30 10:03:10 -02:00
opts
pkg Add memory.kernelTCP support for linux 2018-11-26 21:03:08 +00:00
plugin
profiles Merge pull request #37831 from cyphar/apparmor-external-templates 2018-11-19 09:12:15 +01:00
project Remove duplicate CONTRIBUTING.md 2018-11-08 21:08:12 +01:00
reference Merge pull request #37781 from mtrmac/reference-race-upstream 2018-10-18 12:35:57 -07:00
registry
reports
restartmanager
runconfig
vendor Update gorilla/mux 2018-11-27 17:06:20 -08:00
volume mount: add BindOptions.NonRecursive (API v1.40) 2018-11-06 17:51:58 +09:00
.DEREK.yml
.dockerignore
.gitignore
.mailmap
AUTHORS
CHANGELOG.md
CONTRIBUTING.md
Dockerfile Bump Golang to 1.11.2 2018-11-05 16:48:09 +01:00
Dockerfile.e2e Bump Golang to 1.11.2 2018-11-05 16:48:09 +01:00
Dockerfile.simple Bump Golang to 1.11.2 2018-11-05 16:48:09 +01:00
Dockerfile.windows Bump Golang to 1.11.2 2018-11-05 16:48:09 +01:00
LICENSE
MAINTAINERS
Makefile Allow to override the Makefile's `DOCKER_MOUNT` variable 2018-10-09 14:49:31 -07:00
NOTICE
README.md
ROADMAP.md
TESTING.md
VENDORING.md
codecov.yml
poule.yml Poule:Add Windows RS5 2018-10-08 15:38:27 -07:00
vendor.conf Update gorilla/mux 2018-11-27 17:06:20 -08: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.