Skip to content

[wip] Add support for snapshot mount type#1017

Closed
dmcgowan wants to merge 1 commit intocontainerd:masterfrom
dmcgowan:with-server-mounts
Closed

[wip] Add support for snapshot mount type#1017
dmcgowan wants to merge 1 commit intocontainerd:masterfrom
dmcgowan:with-server-mounts

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

Snapshot mount type allows clients which do not have mount permission to use mounts with the snapshot
type. Additionally the api server can enforce mount namespace doing a mount lookup on the snapshot type without relying on the client to pass in correct mounts. This could be useful to API proxies enforcing namespace boundaries from clients.

This method can be used to simplify clients which never intend to mount snapshots locally. The clients can keep the same interface as passing around []Mount but also able to determine if the mounts are snapshots and which id is associated with that snapshot.

Marked as WIP to review for feedback on this approach.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jun 15, 2017

Codecov Report

Merging #1017 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1017   +/-   ##
=======================================
  Coverage   59.28%   59.28%           
=======================================
  Files           5        5           
  Lines         781      781           
=======================================
  Hits          463      463           
  Misses        204      204           
  Partials      114      114

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d922f48...199c9d0. Read the comment docs.

Snapshot mount type allows clients which do not have
mount permission to use mounts with the snapshot
type. Additionally the api server can enforce mount
namespace doing a mount lookup on the snapshot type
without relying on the client to pass in correct mounts.

Signed-off-by: Derek McGowan <[email protected]>
@dmcgowan dmcgowan force-pushed the with-server-mounts branch from c807ace to 199c9d0 Compare June 16, 2017 20:41
@darstahl darstahl mentioned this pull request Jul 13, 2017
5 tasks
@mlaventure
Copy link
Copy Markdown
Contributor

@dmcgowan still working on this?

@dmcgowan
Copy link
Copy Markdown
Member Author

Going to close this for now until we come up with a better way to handle this mount type for non-root mounts

@dmcgowan dmcgowan closed this Aug 15, 2017
ianlewis pushed a commit to ianlewis/containerd that referenced this pull request Dec 8, 2020
Add unit test for DisableCgroup, RestrictOOMScoreAdj.
@dmcgowan dmcgowan deleted the with-server-mounts branch March 23, 2022 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants