mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #8110 from lsm5/cap-net-raw
replace net_raw with setuid
This commit is contained in:
@ -94,7 +94,7 @@ var _ = Describe("Podman generate kube", func() {
|
|||||||
test1.WaitWithDefaultTimeout()
|
test1.WaitWithDefaultTimeout()
|
||||||
Expect(test1.ExitCode()).To(BeZero())
|
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()
|
commit.WaitWithDefaultTimeout()
|
||||||
Expect(commit.ExitCode()).To(BeZero())
|
Expect(commit.ExitCode()).To(BeZero())
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ var _ = Describe("Podman generate kube", func() {
|
|||||||
|
|
||||||
ctr := inspect.InspectContainerToJSON()
|
ctr := inspect.InspectContainerToJSON()
|
||||||
caps := strings.Join(ctr[0].EffectiveCaps, ",")
|
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"))
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user