-
Notifications
You must be signed in to change notification settings - Fork 251
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
overlay: drop check for mount_program AND force_mask #1970
overlay: drop check for mount_program AND force_mask #1970
Conversation
b0c1492
to
855c90c
Compare
LGTM |
Probably best if someone else reviews this…
I don’t understand how “shared store” and “mount_program” interact. It seems to me that when creating a layer applying a diff, we can set the permissions ourselves while untarring. Fine. What happens with read-write layers? AFAICS in that case we really need the filesystem driver (in-kernel or FUSE) to enforce the mask … but I also see nothing that passes the value to the mount operation. So I don’t understand how any of this works even before this PR, and I’m just confused. |
yes a mount_program is still needed if you plan to use that same store, the issue though is that we require a mount_program even if the root user is not going to use that store to run containers, but only to share images to different users. The store can be made available also on a network file system, so users are not necessarily on the same machine. So we either require |
Would it make sense to refuse to create RW layers if |
Using a mount_program is not a necessary requirement for users creating a shared store, as the store can be consumed by other users. Stop enforcing this rule for read-only layers, but check a mount_program is specified when creating a container. Signed-off-by: Giuseppe Scrivano <[email protected]>
Signed-off-by: Giuseppe Scrivano <[email protected]>
855c90c
to
e6e9715
Compare
sure we can do that. Added a check and submitted a new version |
Don't know this code really well, but looks sane to me |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, giuseppe 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 |
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.
LGTM?
I don’t see how RW layers work with force_mask
at all, but this is is at least not inconsistent with how I imagine it might be working :)
(I plan to leave this for 2 days, to give knowledgeable reviewers an opportunity, and then I default to merging.)
/lgtm as I threatened. |
Using a mount_program is not a necessary requirement for users creating a shared store, as the store can be consumed by other users.
Stop enforcing this rule.