Skip to content

chrootarchive support #18

Open
Open
@erikh

Description

@erikh

This should be done as follows:

  1. Implement runc support, we can rely on runc in the path for this.
  2. runc will run a compiled program we embed into tarutil for the sole purpose of unpacking a file with a specialized filename.
  3. The filename and tar program are stored at the root of the rootfs.
  4. The runc command is invoked with the appropriate container flags for unpacking. It's important to not unpack over the tar file for hopefully obvious security reasons.
  5. The files are overwritten (whiteout) in the unlucky event the inodes are the same file, they won't refer to our tar program or tar file (it'll just be nulled).
  6. Stop runc and return the tar path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions