-
Notifications
You must be signed in to change notification settings - Fork 346
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
Support recursive mount attrs by using mount_setattr(2). #1398
Support recursive mount attrs by using mount_setattr(2). #1398
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1398 +/- ##
==========================================
+ Coverage 68.80% 69.02% +0.21%
==========================================
Files 119 119
Lines 12664 13041 +377
==========================================
+ Hits 8713 9001 +288
- Misses 3951 4040 +89 |
c1f61f3
to
7e886ad
Compare
Signed-off-by: higuruchi <fumiya2324@gmail.com>
7e886ad
to
7c4ff41
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR. Awesome. I left some comments
afa6111
to
f25f745
Compare
Implemented MountAttrOption enum. Signed-off-by: higuruchi <fumiya2324@gmail.com>
f25f745
to
0631de9
Compare
MountAttrNosymfollow(bool, u64), | ||
} | ||
|
||
impl FromStr for MountAttrOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@higuruchi May I ask you to add a test about this in another PR? If you don't have time, please create the issue, and we can take over from you.
I have never written a test for youki, can I try it? |
@higuruchi Sure! If you have trouble or a question about that, please create the issue and ping me or @YJDoc2 (He is a professional for our integration test) |
@higuruchi Sure, let me know if you face any issues. Currently #361 is used to track porting of OCI integration tests, you can take a look at it and start from there 👍 |
Implement "rro" mount option that implemented in runc(opencontainers/runc#3272) and crun(containers/crun#778).
This mount option "rro" makes the mount point recursively read-only, by calling mount_setattr(2) with MOUNT_ATTR_RDONLY and AT_RECURSIVE.
Signed-off-by: higuruchi fumiya2324@gmail.com