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

libcontainer: fix the file mode of the device #2804

Merged
merged 1 commit into from
Feb 22, 2021

Conversation

Iceber
Copy link
Contributor

@Iceber Iceber commented Feb 10, 2021

The file mode of the device does not contain file type bits

mode &^ unix.S_IFMT should be added when setting device.FileMode.

Fix containerd: containerd/containerd#5028
Discussions about FileMode: opencontainers/runtime-spec#1082

kolyshkin
kolyshkin previously approved these changes Feb 10, 2021
Copy link
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 except for one nit which is not important

kolyshkin
kolyshkin previously approved these changes Feb 17, 2021
Copy link
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

@kolyshkin
Copy link
Contributor

@Iceber can you please rebase (to test against go 1.16)?

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

SGTM

@thaJeztah
Copy link
Member

@kolyshkin ptal

Copy link
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

@kolyshkin kolyshkin merged commit ee06c70 into opencontainers:master Feb 22, 2021
@Iceber Iceber deleted the filemode branch February 22, 2021 08:58
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.

4 participants