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
Do not relabel if user did not request it for non local volumes #20834
Conversation
Signed-off-by: Dan Walsh <dwalsh@redhat.com>
I think this is a better fix then #20829 Since it will fail if the user requests a relabel. Should fix the rexray problem. We are automatically labeling local volumes, but if the user uses other different volumes, he should request relabeling. Then we can fail if the volume does not support the labeling. |
also ping @clintonskitson |
I tried above patch above, seems it could not work. Failed with following error
And docker logs are
|
@HackToday Could you print out the name of the bind.Driver and the bind.Mode before the Requires Relabel check? |
@rhatdan I would have access environment tomorrow, right now, at home, I could not access that. :( |
@HackToday Ok, this patch is supposed to prevent all non I like this change better since we will still get failures if a user tries to mount a volume like rexray and specifies :Z or :z |
@rhatdan Confirmed, this patch works as well. |
Excellent, I think this is the patch that should be merged into docker. |
This fixes #18005 ? |
Yes it should. |
hi @rhatdan as another issue #20855 which prevent me from verify your fix here, But I think if coreos works, it should work with atomic, Right? Also, for our cases, since this fix can only be merged in 1.11.0 or 1.10.*, But atomic not integrated such new version, Is it possible to have some work-around for atomic ? (means, still enable selinux, but need user do something when run containers with volume driver) |
If this gets merged into 1.11.0 we will cherrypick it into our docker-1.10 for Fedora and RHEL, or if it ends up in 1.10.3 we would upgrade to this. |
LGTM |
1 similar comment
LGTM |
Do not relabel if user did not request it for non local volumes
:+1 looks good. |
Nice. |
@rhatdan is this patch merged in 1.10.3? |
For some reason I need to run in
permissions of mounted volume:
|
@miry could you open an issue for that? Better than discussing it on a merged PR; make sure to provide info about your setup (at least |
fixes #18005
Signed-off-by: Dan Walsh dwalsh@redhat.com