Skip to content

Commit bcbbbc4

Browse files
authored
Merge pull request #9548 from mheon/fix_1930552
[v1.6.4-rhel] Fix RHBZ#1930552
2 parents 7da9ac5 + fbc96cd commit bcbbbc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpod/oci_conmon_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ func prepareProcessExec(c *Container, cmd, env []string, tty bool, cwd, user, se
11071107
pspec.Capabilities.Effective = []string{}
11081108
if privileged {
11091109
pspec.Capabilities.Bounding = allCaps
1110-
} else {
1110+
} else if execUser.Uid != 0 {
11111111
pspec.Capabilities.Bounding = []string{}
11121112
}
11131113
pspec.Capabilities.Inheritable = pspec.Capabilities.Bounding

0 commit comments

Comments
 (0)