Skip to content

Commit 9fa77be

Browse files
authored
Merge pull request #197 from runcom/ipcmk-old-util-linux
validate: support old ipcmk versions
2 parents 4939408 + 938fa3c commit 9fa77be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/validate/security_context.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ var _ = framework.KubeDescribe("Security Context", func() {
120120

121121
It("runtime should support HostIpc is true", func() {
122122
By("create shared memory segment on the host")
123-
out, err := exec.Command("ipcmk", "-M", "1M").Output()
124-
framework.ExpectNoError(err, "failed to execute ipcmk -M 1M")
123+
out, err := exec.Command("ipcmk", "-M", "1048576").Output()
124+
framework.ExpectNoError(err, "failed to execute ipcmk -M 1048576")
125125
rawID := strings.TrimSpace(string(out))
126126
segmentID := strings.TrimPrefix(rawID, "Shared memory id: ")
127127

@@ -153,8 +153,8 @@ var _ = framework.KubeDescribe("Security Context", func() {
153153

154154
It("runtime should support HostIpc is false", func() {
155155
By("create shared memory segment on the host")
156-
out, err := exec.Command("ipcmk", "-M", "1M").Output()
157-
framework.ExpectNoError(err, "failed to execute ipcmk -M 1M")
156+
out, err := exec.Command("ipcmk", "-M", "1048576").Output()
157+
framework.ExpectNoError(err, "failed to execute ipcmk -M 1048576")
158158
rawID := strings.TrimSpace(string(out))
159159
segmentID := strings.TrimPrefix(rawID, "Shared memory id: ")
160160

0 commit comments

Comments
 (0)