-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Make sure buildin volumes have the same ownership and permissions as … #2643
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan 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 |
Closes: #2634 |
Potential problem - what happens if someone else mounts this volume? Do we
leave the permissions as is?
Need to figure out how Docker handles this.
…On Thu, Mar 14, 2019, 08:37 Daniel J Walsh ***@***.***> wrote:
@giuseppe <https://github.com/giuseppe> @umohnani8
<https://github.com/umohnani8> @mheon <https://github.com/mheon> @baude
<https://github.com/baude> @TomSweeneyRedHat
<https://github.com/TomSweeneyRedHat> PTAL
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2643 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHYHCPdAF_rltu1Bqymp_O6Zk6kMnxXkks5vWkKPgaJpZM4b0Cb6>
.
|
Yes once the volume is created it never gets changed. This is only doing the chown on initial creation of the source. |
Other than @mheon's potential issue, LGTM |
BTW This has nothing to do with the container that is mounting it, it is just looking at the ownership of the image. |
LGTM |
I feel like we ought to be doing this inside the volume code, but eh. LGTM if we're confident this is the right behavior. |
Tests are properly angry though |
Changes LGTM |
…image When creating a new image volume to be mounted into a container, we need to make sure the new volume matches the Ownership and permissions of the path that it will be mounted on. For example if a volume inside of a containre image is owned by the database UID, we want the volume to be mounted onto the image to be owned by the database UID. Signed-off-by: Daniel J Walsh <[email protected]>
/lgtm |
…image
When creating a new image volume to be mounted into a container, we need to
make sure the new volume matches the Ownership and permissions of the path
that it will be mounted on.
For example if a volume inside of a containre image is owned by the database
UID, we want the volume to be mounted onto the image to be owned by the
database UID.
Signed-off-by: Daniel J Walsh [email protected]