Skip to content
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

libct/cg/sd: fix "SkipDevices" handling #3019

Merged
merged 1 commit into from
Jun 11, 2021

Conversation

kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Jun 10, 2021

  1. Fix handling of SkipDevices option -- it should be what it literally means,
    i.e. do not set any device-related options.

  2. Revert the part of commit 108ee85 which skipped the freeze
    when the SkipDevices is set. Apparently, the freeze is needed on
    update even if no Device* properties are being set.

  3. Add runc update to "runc run [device cgroup deny]" test.

Fixes: 752e7a8
Fixes: 108ee85
Fixes: #3014

1. The meaning of SkipDevices is what it is -- do not set any
   device-related options.

2. Reverts the part of commit 108ee85 which skipped the freeze
   when the SkipDevices is set. Apparently, the freeze is needed on
   update even if no Device* properties are being set.

3. Add "runc update" to "runc run [device cgroup deny]" test.

Fixes: 752e7a8
Fixes: 108ee85
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin changed the title libct/cg/sd: fix "SkipDevices" meaning libct/cg/sd: fix "SkipDevices" handling Jun 10, 2021
@kolyshkin kolyshkin marked this pull request as ready for review June 10, 2021 19:37
@kolyshkin kolyshkin added this to the 1.0.0 milestone Jun 10, 2021
@kolyshkin
Copy link
Contributor Author

kolyshkin commented Jun 10, 2021

Also testing it in kubernetes/kubernetes#102508

Update: which is all good and green

Copy link
Member

@cyphar cyphar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(regression in master) not ok 117 update devices [minimal transition rules]
3 participants