k3s/pkg/kubelet/dockershim
Kubernetes Submit Queue 72c6251508 Merge pull request #47019 from jessfraz/allowPrivilegeEscalation
Automatic merge from submit-queue (batch tested with PRs 49651, 49707, 49662, 47019, 49747)

Add support for `no_new_privs` via AllowPrivilegeEscalation

**What this PR does / why we need it**:
Implements kubernetes/community#639
Fixes #38417

Adds `AllowPrivilegeEscalation` and `DefaultAllowPrivilegeEscalation` to `PodSecurityPolicy`.
Adds `AllowPrivilegeEscalation` to container `SecurityContext`.

Adds the proposed behavior to `kuberuntime`, `dockershim`, and `rkt`. Adds a bunch of unit tests to ensure the desired default behavior and that when `DefaultAllowPrivilegeEscalation` is explicitly set.

Tests pass locally with docker and rkt runtimes. There are also a few integration tests with a `setuid` binary for sanity.

**Release note**:

```release-note
Adds AllowPrivilegeEscalation to control whether a process can gain more privileges than it's parent process
```
2017-07-31 16:56:58 -07:00
..
cm Support TCP type runtime endpoint for kubelet. 2017-05-25 09:16:11 +08:00
errors update bazel 2017-02-15 10:06:49 -08:00
fixtures/seccomp Add the seccomp profile loading test to dockershim 2017-05-03 12:55:56 -07:00
libdocker Updates Docker Engine API 2017-07-13 12:55:07 -07:00
remote update godep 2017-07-20 11:03:49 -07:00
testing update bazel 2017-02-15 10:06:49 -08:00
BUILD update godep 2017-07-20 11:03:49 -07:00
checkpoint_store.go dockershim: call sync() after writing the checkpoint 2017-03-14 18:36:51 -07:00
checkpoint_store_test.go initialize directory while creating checkpoint file store 2017-02-17 16:56:46 -08:00
convert.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
convert_test.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
doc.go Update CRI references 2017-06-09 10:16:40 +08:00
docker_checkpoint.go dockershim: checkpoint HostNetwork property 2017-06-21 13:10:47 -05:00
docker_checkpoint_test.go dockershim: checkpoint HostNetwork property 2017-06-21 13:10:47 -05:00
docker_container.go Merge pull request #49107 from edevil/try_remove_old_log 2017-07-20 15:08:17 -07:00
docker_container_test.go Merge pull request #49107 from edevil/try_remove_old_log 2017-07-20 15:08:17 -07:00
docker_image.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
docker_image_test.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
docker_legacy.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
docker_legacy_test.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
docker_sandbox.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
docker_sandbox_test.go dockershim: don't spam logs with pod IP errors before networking is ready 2017-06-12 15:07:38 -05:00
docker_service.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
docker_service_test.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
docker_stats.go Update CRI references 2017-06-09 10:16:40 +08:00
docker_streaming.go Fix TODO: rename podInfraContainerID to podSandboxID 2017-07-20 17:45:55 -07:00
exec.go update import 2017-07-20 11:03:49 -07:00
helpers.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
helpers_linux.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
helpers_linux_test.go Move seccomp helper methods and tests to platform-specific files. 2017-06-23 09:49:06 +08:00
helpers_test.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
helpers_unsupported.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
helpers_windows.go Fix compilation failure in dockershim for windows 2017-07-14 18:15:26 -07:00
naming.go Update CRI references 2017-06-09 10:16:40 +08:00
naming_test.go Update CRI references 2017-06-09 10:16:40 +08:00
security_context.go Merge pull request #47019 from jessfraz/allowPrivilegeEscalation 2017-07-31 16:56:58 -07:00
security_context_test.go Updates Docker Engine API 2017-07-13 12:55:07 -07:00
selinux_util.go dockershim: clean up unused security context code 2017-07-10 17:48:26 -07:00
selinux_util_test.go dockershim: clean up unused security context code 2017-07-10 17:48:26 -07:00