-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add white list for bind mount check #452
Conversation
LGTM |
@@ -299,6 +299,22 @@ func checkMountDestination(rootfs, dest string) error { | |||
invalidDestinations := []string{ | |||
"/proc", | |||
} | |||
// White list, it should be sub directories of invalid destionations |
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.
@hqhq
small typo in the comment, "invalid destionations" -> invalid destinations
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.
@rajasec Thanks, updated.
6f3fadb
to
566abcc
Compare
@@ -299,6 +299,22 @@ func checkMountDestination(rootfs, dest string) error { | |||
invalidDestinations := []string{ | |||
"/proc", | |||
} | |||
// White list, it should be sub directories of invalid destinations | |||
validDestinations := []string{ |
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.
Can you add why these files were chosen and use cases?
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.
@mrunalp Updated.
Fixes: opencontainers#400 It would be useful to use fuse to isolate proc info. Signed-off-by: Qiang Huang <[email protected]>
566abcc
to
9c1242e
Compare
LGTM |
Add white list for bind mount check
…stem-owners config-linux: Make “don't modify filesystem permissions” generic
Fixes: #400
It would be useful to use fuse to isolate proc info.
Signed-off-by: Qiang Huang [email protected]