Skip to content

Commit

Permalink
Merge pull request #9548 from mheon/fix_1930552
Browse files Browse the repository at this point in the history
[v1.6.4-rhel] Fix RHBZ#1930552
  • Loading branch information
rhatdan committed Mar 1, 2021
2 parents 7da9ac5 + fbc96cd commit bcbbbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/oci_conmon_linux.go
Expand Up @@ -1107,7 +1107,7 @@ func prepareProcessExec(c *Container, cmd, env []string, tty bool, cwd, user, se
pspec.Capabilities.Effective = []string{}
if privileged {
pspec.Capabilities.Bounding = allCaps
} else {
} else if execUser.Uid != 0 {
pspec.Capabilities.Bounding = []string{}
}
pspec.Capabilities.Inheritable = pspec.Capabilities.Bounding
Expand Down

0 comments on commit bcbbbc4

Please sign in to comment.