-
Notifications
You must be signed in to change notification settings - Fork 264
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
Isolated layerextract #1399
base: main
Are you sure you want to change the base?
Isolated layerextract #1399
Conversation
18f5ba7
to
25aa0aa
Compare
Oh shoot. Whats the plan for this in containerd integrations? Interesting hack to add the re-exec on the differ itself. |
I didnt know of another way to reduce privileges and isolate the extraction/conversion. |
Just linked the containerd thread on this for ya. We for sure want this in upstream |
Created binary stream processors to extract tar layers and then convert to a VHD for LCOW or WCOW (via tar2ext4.Convert or ociwclayer.ImportLayerFromTar, respectively). Currently, binary re-execs itself using a restricted token with limited privileges and reduced access. Signed-off-by: Hamza El-Saawy <[email protected]>
072eacd
to
f2e2b95
Compare
Signed-off-by: Hamza El-Saawy <[email protected]>
Signed-off-by: Hamza El-Saawy <[email protected]>
Signed-off-by: Hamza El-Saawy <[email protected]>
restricted SIDs on restricted token now work Signed-off-by: Hamza El-Saawy <[email protected]>
Adding a new binary (
cmd/differ
) that functions as a binary stream processor for containerd differ plugins.The command can extract tars and run both
tar2ext4
orwclayer.extract
for LCOW and WCOW images, respectively.