• 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
..
cm Loading commit data...
errors Loading commit data...
fixtures/seccomp Loading commit data...
libdocker Loading commit data...
remote Loading commit data...
testing Loading commit data...
BUILD Loading commit data...
checkpoint_store.go Loading commit data...
checkpoint_store_test.go Loading commit data...
convert.go Loading commit data...
convert_test.go Loading commit data...
doc.go Loading commit data...
docker_checkpoint.go Loading commit data...
docker_checkpoint_test.go Loading commit data...
docker_container.go Loading commit data...
docker_container_test.go Loading commit data...
docker_image.go Loading commit data...
docker_image_test.go Loading commit data...
docker_legacy.go Loading commit data...
docker_legacy_test.go Loading commit data...
docker_sandbox.go Loading commit data...
docker_sandbox_test.go Loading commit data...
docker_service.go Loading commit data...
docker_service_test.go Loading commit data...
docker_stats.go Loading commit data...
docker_streaming.go Loading commit data...
exec.go Loading commit data...
helpers.go Loading commit data...
helpers_linux.go Loading commit data...
helpers_linux_test.go Loading commit data...
helpers_test.go Loading commit data...
helpers_unsupported.go Loading commit data...
helpers_windows.go Loading commit data...
naming.go Loading commit data...
naming_test.go Loading commit data...
security_context.go Loading commit data...
security_context_test.go Loading commit data...
selinux_util.go Loading commit data...
selinux_util_test.go Loading commit data...