Skip to content

Enable NoNewPrivileges for unprivileged container processes#502

Open
plamen-bardarov wants to merge 1 commit into
cloudfoundry:mainfrom
plamen-bardarov:enable-no-new-privileges
Open

Enable NoNewPrivileges for unprivileged container processes#502
plamen-bardarov wants to merge 1 commit into
cloudfoundry:mainfrom
plamen-bardarov:enable-no-new-privileges

Conversation

@plamen-bardarov
Copy link
Copy Markdown
Contributor

Summary

Adds --no-new-privileges flag that sets NoNewPrivileges=true in the OCI runtime spec for unprivileged containers and peas, closing a privilege escalation path via setuid binaries. The flag is propagated to all spawned processes including cf ssh and sidecars. Privileged containers are unaffected.

Backward Compatibility

Breaking Change? No

Add --no-new-privileges CLI flag that sets NoNewPrivileges=true in the
OCI runtime spec for unprivileged containers and peas. This prevents
privilege escalation via setuid binaries and file capabilities.

The flag is propagated to all spawned processes (cf ssh, garden run)
via BuildProcess. Privileged containers are unaffected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant