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

volume: apply exact permission of target directory without adding extra 0111 #12528

Conversation

flouthoc
Copy link
Collaborator

@flouthoc flouthoc commented Dec 7, 2021

While trying to match permissions of target directory podman adds
extra 0111 which should not be needed if target path does not have
execute permission.

Closes: #12523

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 7, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 7, 2021
…ra 0111

While trying to match permissions of target directory podman adds
extra `0111` which should not be needed if target path does not have
execute permission.

Signed-off-by: Aditya Rajan <[email protected]>
@flouthoc flouthoc force-pushed the dont_modify_mount_permissions branch from 62972af to 7d0fd17 Compare December 7, 2021 10:12
@rhatdan
Copy link
Member

rhatdan commented Dec 7, 2021

This LGTM, but I would love to know where that code came from. (Hopefully not from me.)

@flouthoc
Copy link
Collaborator Author

flouthoc commented Dec 7, 2021

I think initial code came from @giuseppe 4 years ago but it was written for a different purpose i.e UserNSsupport and later that chunk was copied to fixVolumePermissions and extra 0111 came with it unintentionally.

Code was moved multiple times so i am having hard time tracking it.

@flouthoc
Copy link
Collaborator Author

flouthoc commented Dec 7, 2021

Last movement happened here though #10531

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rhatdan
Copy link
Member

rhatdan commented Dec 7, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 7, 2021
@openshift-merge-robot openshift-merge-robot merged commit 4307729 into containers:main Dec 7, 2021
@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 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 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.

Volume directory has wrong permissions when overriding container directory
4 participants