k3s/pkg/apis/extensions
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
..
install run pkg/apis/make-origin-dir-compile, pkg/apis compile 2017-06-22 11:30:51 -07:00
v1beta1 allowPrivilegeEscalation: update code generation 2017-07-24 13:55:16 -04:00
validation allowPrivilegeEscalation: modify api types & add functionality 2017-07-24 12:52:41 -04:00
BUILD update generated files 2017-06-21 04:09:08 -07:00
OWNERS Remove myself from a bunch of places 2017-07-20 12:10:46 +02:00
doc.go stop generating openapi schemas for internal types 2016-12-09 02:41:45 -05:00
helpers.go Add sysctl PodSecurityPolicy support 2016-08-25 13:22:01 +02:00
helpers_test.go Add sysctl PodSecurityPolicy support 2016-08-25 13:22:01 +02:00
register.go Removed HPA objects from extensions api group 2017-02-02 14:09:54 +01:00
types.go Merge pull request #47019 from jessfraz/allowPrivilegeEscalation 2017-07-31 16:56:58 -07:00
zz_generated.deepcopy.go allowPrivilegeEscalation: update code generation 2017-07-24 13:55:16 -04:00