k3s/pkg/kubelet/kuberuntime
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
..
BUILD Move pkg/api/v1/ref -> client-go/tools/reference 2017-07-18 22:45:43 +02:00
doc.go cmd/kubelet 2016-11-23 15:53:09 -08:00
fake_kuberuntime_manager.go run hack/update-all 2017-06-22 11:31:03 -07:00
helpers.go run hack/update-all 2017-06-22 11:31:03 -07:00
helpers_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
instrumented_services.go Update CRI references 2017-06-09 10:16:40 +08:00
instrumented_services_test.go Improving test coverage for kubelet/kuberuntime. 2017-06-01 09:43:15 +02:00
kuberuntime_container.go Merge pull request #47357 from yujuhong/rm-oomkilled 2017-07-26 12:03:42 -07:00
kuberuntime_container_test.go Merge pull request #48194 from k82cn/k8s_48173 2017-07-05 14:21:39 -07:00
kuberuntime_gc.go Update CRI references 2017-06-09 10:16:40 +08:00
kuberuntime_gc_test.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
kuberuntime_image.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_image_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_logs.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
kuberuntime_logs_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_manager.go Merge pull request #48584 from yiqinguo/yiqinguo_eventtype 2017-07-24 13:52:36 -07:00
kuberuntime_manager_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_sandbox.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_sandbox_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
labels.go run hack/update-all 2017-06-22 11:31:03 -07:00
labels_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
legacy.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
legacy_test.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
security_context.go allowPrivilegeEscalation: modify api types & add functionality 2017-07-24 12:52:41 -04:00
security_context_test.go run hack/update-all 2017-06-22 11:31:03 -07:00