• Kubernetes Submit Queue's avatar
    Merge pull request #47019 from jessfraz/allowPrivilegeEscalation · 72c62515
    Kubernetes Submit Queue authored
    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
    ```
    72c62515
Name
Last commit
Last update
..
clusterapi-tester Loading commit data...
cuda-vector-add Loading commit data...
dnsutils Loading commit data...
entrypoint-tester Loading commit data...
fakegitserver Loading commit data...
goproxy Loading commit data...
hostexec Loading commit data...
iperf Loading commit data...
jessie-dnsutils Loading commit data...
kitten Loading commit data...
liveness Loading commit data...
logs-generator Loading commit data...
mounttest Loading commit data...
mounttest-user Loading commit data...
n-way-http Loading commit data...
nautilus Loading commit data...
net Loading commit data...
netexec Loading commit data...
nettest Loading commit data...
no-snat-test Loading commit data...
no-snat-test-proxy Loading commit data...
nonewprivs Loading commit data...
pets Loading commit data...
port-forward-tester Loading commit data...
porter Loading commit data...
redis Loading commit data...
resource-consumer Loading commit data...
serve-hostname Loading commit data...
test-webserver Loading commit data...
volumes-tester Loading commit data...
BUILD Loading commit data...
Makefile Loading commit data...
image-util.sh Loading commit data...