Skip to content

Conversation

@helsaawy
Copy link
Contributor

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 or wclayer.extract for LCOW and WCOW images, respectively.

@helsaawy helsaawy force-pushed the he/layerextract branch 4 times, most recently from 18f5ba7 to 25aa0aa Compare May 18, 2022 17:55
@jterry75
Copy link
Contributor

Oh shoot. Whats the plan for this in containerd integrations? Interesting hack to add the re-exec on the differ itself.

@helsaawy
Copy link
Contributor Author

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.
containerd integration is here: kevpar/containerd#47. I am not sure how much upstream will be interested in it.

@jterry75
Copy link
Contributor

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 <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy force-pushed the he/layerextract branch 2 times, most recently from 072eacd to f2e2b95 Compare May 20, 2022 22:56
helsaawy added 3 commits May 22, 2022 18:07
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
restricted SIDs on restricted token now work

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
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.

2 participants