Skip to content

Commit

Permalink
Merge pull request #8110 from lsm5/cap-net-raw
Browse files Browse the repository at this point in the history
replace net_raw with setuid
  • Loading branch information
openshift-merge-robot authored Oct 22, 2020
2 parents a53a660 + 914bbf5 commit 2ca4af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/run_security_labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var _ = Describe("Podman generate kube", func() {
test1.WaitWithDefaultTimeout()
Expect(test1.ExitCode()).To(BeZero())

commit := podmanTest.Podman([]string{"commit", "-c", "label=io.containers.capabilities=sys_chroot,net_raw", "test1", "image1"})
commit := podmanTest.Podman([]string{"commit", "-c", "label=io.containers.capabilities=sys_chroot,setuid", "test1", "image1"})
commit.WaitWithDefaultTimeout()
Expect(commit.ExitCode()).To(BeZero())

Expand All @@ -108,7 +108,7 @@ var _ = Describe("Podman generate kube", func() {

ctr := inspect.InspectContainerToJSON()
caps := strings.Join(ctr[0].EffectiveCaps, ",")
Expect(caps).To(Equal("CAP_SYS_CHROOT,CAP_NET_RAW"))
Expect(caps).To(Equal("CAP_SYS_CHROOT,CAP_SETUID"))

})

Expand Down

0 comments on commit 2ca4af6

Please sign in to comment.