Skip to content

Libcontainer: refactor capabilities code and remove RHEL6 workaround#2595

Merged
AkihiroSuda merged 5 commits into
opencontainers:masterfrom
thaJeztah:libcontainer_caps_refactor
Sep 29, 2020
Merged

Libcontainer: refactor capabilities code and remove RHEL6 workaround#2595
AkihiroSuda merged 5 commits into
opencontainers:masterfrom
thaJeztah:libcontainer_caps_refactor

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

See individual commit messages for details

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This was a workaround for RHEL6 (2.6.xx) kernels, which have not
been supported by container runtimes for a long time, so should
be safe to remove this workaround.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah changed the title Libcontainer: refactor capabilities code Libcontainer: refactor capabilities code and remove RHEL6 workaround Sep 19, 2020
@thaJeztah thaJeztah marked this pull request as ready for review September 19, 2020 10:16
@thaJeztah
Copy link
Copy Markdown
Member Author

@kolyshkin @mrunalp ptal

@AkihiroSuda
Copy link
Copy Markdown
Member

Can we update the README to clarify the current minimum kernel requirement? 3.10? (Does it work without Red Hat patches?)

@thaJeztah
Copy link
Copy Markdown
Member Author

I don't think we test 3.10.x on anything other than RHEL 7 / CentOS 7 kernels. Not sure if there's still uses of runc on Debian Jessie (3.16); I know that kernel was somewhat problematic at some point.

Perhaps we should be explicit on the intent; something along the lines of "Runc support kernel 3.10 to facilitate RHEL7 and CentOS7. For other distributions, we recommend/support kernel 4.0 and up"

@thaJeztah
Copy link
Copy Markdown
Member Author

FWIW; I'd be ok with keeping the RHEL6 hack if it's a concern (removing it is just a minor cleanup, so I'm not strongly attached to removing it)

Copy link
Copy Markdown
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

LGTM, and thanks!

@kolyshkin
Copy link
Copy Markdown
Contributor

@AkihiroSuda @mrunalp PTAL

@AkihiroSuda AkihiroSuda merged commit 49d4507 into opencontainers:master Sep 29, 2020
@thaJeztah thaJeztah deleted the libcontainer_caps_refactor branch September 29, 2020 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants