diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-04-11 03:36:26 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-11 03:36:26 +0000 |
commit | 4a9553ad8b9807f44490d345d5f23b68acaf94ca (patch) | |
tree | 62d3eb02ccacc9447df9ff44ea1c28070d3e2baa /runsc/specutils | |
parent | dd8a9b5e9354c117f21daadc640e680235144cc2 (diff) | |
parent | daf3322498b698518a3c8545ad05f790deb3848c (diff) |
Merge release-20200323.0-130-gdaf3322 (automated)
Diffstat (limited to 'runsc/specutils')
-rw-r--r-- | runsc/specutils/specutils.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runsc/specutils/specutils.go b/runsc/specutils/specutils.go index 0f4a9cf6d..837d5e238 100644 --- a/runsc/specutils/specutils.go +++ b/runsc/specutils/specutils.go @@ -92,6 +92,12 @@ func ValidateSpec(spec *specs.Spec) error { log.Warningf("AppArmor profile %q is being ignored", spec.Process.ApparmorProfile) } + // PR_SET_NO_NEW_PRIVS is assumed to always be set. + // See kernel.Task.updateCredsForExecLocked. + if !spec.Process.NoNewPrivileges { + log.Warningf("noNewPrivileges ignored. PR_SET_NO_NEW_PRIVS is assumed to always be set.") + } + // TODO(gvisor.dev/issue/510): Apply seccomp to application inside sandbox. if spec.Linux != nil && spec.Linux.Seccomp != nil { log.Warningf("Seccomp spec is being ignored") |