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

linux: always remount bind mounts #640

Merged
merged 2 commits into from
Mar 31, 2021

Conversation

giuseppe
Copy link
Member

it is useful to reset flags like nodev,noexec,nosuid if they are not
specified in the bind mount itself.

Closes: #639

Signed-off-by: Giuseppe Scrivano [email protected]

it is useful to reset flags like nodev,noexec,nosuid if they are not
specified in the bind mount itself.

Closes: containers#639

Signed-off-by: Giuseppe Scrivano <[email protected]>
Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe giuseppe force-pushed the always-remount-with-bind-mounts branch from a4c91b7 to f642968 Compare March 31, 2021 08:38
@giuseppe giuseppe marked this pull request as ready for review March 31, 2021 08:38
@giuseppe
Copy link
Member Author

tests added

Copy link
Member

@rhatdan rhatdan left a comment

Choose a reason for hiding this comment

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

LGTM

@rhatdan rhatdan merged commit a72dd4d into containers:master Mar 31, 2021
@cevich
Copy link
Member

cevich commented Mar 31, 2021

Thanks @giuseppe

@lsm5
Copy link
Member

lsm5 commented Mar 31, 2021

@giuseppe would you mind cutting a new release please? Much easier for packaging than adding commits imho.

@cevich
Copy link
Member

cevich commented Mar 31, 2021

Update: I confirmed the issue does reproduce on Ubuntu 20.10 w/ crun-100:0.18-3. However we don't normally run p-in-p testing there (for podman CI), and the default mount options don't include nodev. So that's less of a priority for me, but the bug does exist there and would likely be fixed by this PR (I didn't try).

@lsm5
Copy link
Member

lsm5 commented Mar 31, 2021

fedora infra is awfully slow today. I'll post bodhi links here after the builds are done.

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.

crun 0.18 leaking mount options when it shouldn't
4 participants