-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Disable mount options when running --privileged #1317
Conversation
@cgwalters PTAL |
libpod/runtime.go
Outdated
} | ||
opts = append(opts, i) | ||
} | ||
r.config.StorageConfig.GraphDriverOptions = opts |
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 we do this without modifying the storage.Store?
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.
Not sure how?
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.
It no longer modifies the store. Just sends the options in on the container creation.
Would be a lot better if we had an API to toggle per-container in c/storage - this will make it so that launching a single container will disable mount opts for the entire container once we move CRI-O to libpod |
bot, retest this please |
libpod/runtime.go
Outdated
@@ -714,3 +715,15 @@ func (r *Runtime) generateName() (string, error) { | |||
func (r *Runtime) ImageRuntime() *image.Runtime { | |||
return r.imageRuntime | |||
} | |||
|
|||
// RemoveMountOptions removes mount ouptions from the graphdriver |
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.
typo "options"
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.
Removed
2f753b8
to
85fc280
Compare
Opened containers/storage#211 so we could pass this down the the graphdriver per container, |
bot, retest this please |
☔ The latest upstream changes (presumably #1662) made this pull request unmergeable. Please resolve the merge conflicts. |
Requires containers/storage#226 |
☔ The latest upstream changes (presumably #1820) made this pull request unmergeable. Please resolve the merge conflicts. |
This allows us to modify the containers mount option on a per/container basis Signed-off-by: Daniel J Walsh <[email protected]>
We now default to setting storage options to "nodev", when running privileged containers, we need to turn this off so the processes can manipulate the image. Signed-off-by: Daniel J Walsh <[email protected]>
@cgwalters @mheon @baude @umohnani8 @giuseppe @vrothberg PTAL |
LGTM |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mheon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM |
/lgtm |
We now default to setting storage options to "nodev", when running
privileged containers, we need to turn this off so the processes can
manipulate the image.
Signed-off-by: Daniel J Walsh [email protected]