-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux: add /sys/fs/cgroup if /sys is a bind mount #17034
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -974,4 +974,9 @@ EOF | |
run_podman 125 create --name "$randomname/" $IMAGE | ||
} | ||
|
||
@test "podman run --net=host --cgroupns=host with read only cgroupfs" { | ||
# verify that the last /sys/fs/cgroup mount is read-only | ||
run_podman run --net=host --cgroupns=host --rm $IMAGE sh -c "grep ' / /sys/fs/cgroup ' /proc/self/mountinfo | tail -n 1 | grep '/sys/fs/cgroup ro'" | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't do that. You can't $ hack/bats 030:"read only cgr" ...and to use it against a podman that does not include your fixes. If the test passes against There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the pipes are part of the command that runs inside the container. The test fails when I use an older podman version There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops - sorry, I misread it. I still wish the test was better commented, but I won't block over that. |
||
|
||
# vim: filetype=sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing end brace here