Skip to content
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

Merged
merged 1 commit into from
Mar 15, 2019

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Mar 14, 2019

…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]

@openshift-ci-robot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan
Copy link
Member Author

rhatdan commented Mar 14, 2019

Closes: #2634

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S labels Mar 14, 2019
@rhatdan
Copy link
Member Author

rhatdan commented Mar 14, 2019

@rhatdan
Copy link
Member Author

rhatdan commented Mar 14, 2019

@mheon
Copy link
Member

mheon commented Mar 14, 2019 via email

@rhatdan
Copy link
Member Author

rhatdan commented Mar 14, 2019

Yes once the volume is created it never gets changed. This is only doing the chown on initial creation of the source.

@TomSweeneyRedHat
Copy link
Member

Other than @mheon's potential issue, LGTM

@rhatdan
Copy link
Member Author

rhatdan commented Mar 14, 2019

BTW This has nothing to do with the container that is mounting it, it is just looking at the ownership of the image.
Where this will fail is when we are using User Namespaces. Since the UID will probably not be mapped to the container.

@giuseppe
Copy link
Member

LGTM

@mheon
Copy link
Member

mheon commented Mar 14, 2019

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.

@mheon
Copy link
Member

mheon commented Mar 14, 2019

Tests are properly angry though

@umohnani8
Copy link
Member

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]>
@mheon
Copy link
Member

mheon commented Mar 15, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 15, 2019
@openshift-merge-robot openshift-merge-robot merged commit 3754f58 into containers:master Mar 15, 2019
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants