summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-19 16:00:32 -0700
committerGitHub <noreply@github.com>2021-03-19 16:00:32 -0700
commitebc9871c9358b41daefc37e5db8119f596770cb7 (patch)
tree2ea4b54edf71e94d8a37918b8658326b1d194772 /libpod
parent5325957d536be3515fb7a782e4755afca38fca4c (diff)
parentadf652e2a1a67a8c70840fb9dfbc796f5b5b3c03 (diff)
downloadpodman-ebc9871c9358b41daefc37e5db8119f596770cb7.tar.gz
podman-ebc9871c9358b41daefc37e5db8119f596770cb7.tar.bz2
podman-ebc9871c9358b41daefc37e5db8119f596770cb7.zip
Merge pull request #9762 from giuseppe/use-bounding-caps-for---privileged
security: use the bounding caps with --privileged
Diffstat (limited to 'libpod')
-rw-r--r--libpod/oci_conmon_linux.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go
index ef5f6fb0c..1c7089e5d 100644
--- a/libpod/oci_conmon_linux.go
+++ b/libpod/oci_conmon_linux.go
@@ -1268,7 +1268,10 @@ func prepareProcessExec(c *Container, options *ExecOptions, env []string, sessio
return nil, err
}
- allCaps := capabilities.AllCapabilities()
+ allCaps, err := capabilities.BoundingSet()
+ if err != nil {
+ return nil, err
+ }
if options.Privileged {
pspec.Capabilities.Bounding = allCaps
} else {