Support recursive mount attrs by using mount_setattr(2).#1398
Support recursive mount attrs by using mount_setattr(2).#1398utam0k merged 2 commits intoyouki-dev:mainfrom
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
utam0k
left a comment
There was a problem hiding this comment.
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 { |
utam0k
left a comment
There was a problem hiding this comment.
@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