1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/reference
Justin Cormack a01c4dc8f8 Align default seccomp profile with selected capabilities
Currently the default seccomp profile is fixed. This changes it
so that it varies depending on the Linux capabilities selected with
the --cap-add and --cap-drop options. Without this, if a user adds
privileges, eg to allow ptrace with --cap-add sys_ptrace then still
cannot actually use ptrace as it is still blocked by seccomp, so
they will probably disable seccomp or use --privileged. With this
change the syscalls that are needed for the capability are also
allowed by the seccomp profile based on the selected capabilities.

While this patch makes it easier to do things with for example
cap_sys_admin enabled, as it will now allow creating new namespaces
and use of mount, it still allows less than --cap-add cap_sys_admin
--security-opt seccomp:unconfined would have previously. It is not
recommended that users run containers with cap_sys_admin as this does
give full access to the host machine.

It also cleans up some architecture specific system calls to be
only selected when needed.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-05-11 09:30:23 +01:00
..
api Add support for reading logs extra attrs 2016-05-06 20:42:20 -04:00
commandline docs: clarify docker attach 2016-05-09 13:35:34 -07:00
builder.md Improve build cache miss doc for ARG and RUN 2016-04-13 15:02:09 +02:00
glossary.md Update links to Docker Hub 2016-03-04 15:48:52 +01:00
index.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
run.md Align default seccomp profile with selected capabilities 2016-05-11 09:30:23 +01:00