Skip to content

[release/1.7] cherry-pick: Fix ro mount option being passed#8887

Merged
fuweid merged 1 commit intocontainerd:release/1.7from
estesp:cp-8852-1.7
Jul 30, 2023
Merged

[release/1.7] cherry-pick: Fix ro mount option being passed#8887
fuweid merged 1 commit intocontainerd:release/1.7from
estesp:cp-8852-1.7

Conversation

@estesp
Copy link
Copy Markdown
Member

@estesp estesp commented Jul 28, 2023

Clean cherry pick of f3daf32 (#8852) into release/1.7

"ro" was not parsed out of the string, so it was passed as part of data to mount().
This would lead to mount() returning an invalid argument code. Separate out the "ro" option, much like "userxattr", which will allow the MS-RDONLY mountflag to get set.

Signed-off-by: Ben Foster [email protected]
(cherry picked from commit f3daf32)

"ro" was not parsed out of the string, so it was passed as part of data
to mount().
This would lead to mount() returning an invalid argument code.
Separate out the "ro" option, much like "userxattr", which will allow
the MS-RDONLY mountflag to get set.

Signed-off-by: Ben Foster <[email protected]>
(cherry picked from commit f3daf32)
Copy link
Copy Markdown
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

@fuweid fuweid merged commit 98e8e05 into containerd:release/1.7 Jul 30, 2023
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