kubernetes/pkg/api/v1
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
..
endpoints run hack/update-all 2017-06-22 11:31:03 -07:00
helper Build files generated 2017-07-19 18:36:12 -04:00
node run hack/update-all 2017-06-22 11:31:03 -07:00
pod run hack/update-all 2017-06-22 11:31:03 -07:00
resource Remove useless error 2017-07-03 14:59:54 +08:00
service run hack/update-all 2017-06-22 11:31:03 -07:00
validation run hack/update-all 2017-06-22 11:31:03 -07:00
backward_compatibility_test.go manually fix unit tests in pkg/api/v1 2017-06-22 11:30:52 -07:00
BUILD rename pkg/api/v1/builder.go to register.go to be consistent with others 2017-07-21 14:03:32 -07:00
conversion_test.go manually fix unit tests in pkg/api/v1 2017-06-22 11:30:52 -07:00
conversion.go allowPrivilegeEscalation: modify api types & add functionality 2017-07-24 12:52:41 -04:00
defaults_test.go manually fix unit tests 2017-06-22 11:30:59 -07:00
defaults.go Refactor: pkg/util into sub-pkgs 2017-07-18 14:34:08 +08:00
doc.go split v1/register.go to regsiter.go and builder.go 2017-06-22 10:21:42 -07:00
generate.go run hack/update-all 2017-06-22 11:31:03 -07:00
OWNERS Remove myself from a bunch of places 2017-07-20 12:10:46 +02:00
register.go rename pkg/api/v1/builder.go to register.go to be consistent with others 2017-07-21 14:03:32 -07:00
zz_generated.conversion.go allowPrivilegeEscalation: update code generation 2017-07-24 13:55:16 -04:00
zz_generated.defaults.go run hack/update-codegen.sh 2017-06-22 11:30:58 -07:00