Skip to content
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

lib/tar: Pre-filter tar archive in Rust #112

Merged
merged 1 commit into from
Oct 5, 2021

Commits on Oct 4, 2021

  1. lib/tar: Pre-filter tar archive in Rust

    Rather than trying to extend the ostree C code to support
    arbitrary transformations, let's do pre-parsing here in safe Rust.
    
    We keep the `/etc` → `/usr/etc` bits, but we also just completely
    drop everything not in `/usr` now.
    
    As noted in the comment, this pre-validation will hopefully also
    catch any corrupt tarballs that might be exploitable in the C libarchive
    codebase.
    cgwalters committed Oct 4, 2021
    Configuration menu
    Copy the full SHA
    520fc40 View commit details
    Browse the repository at this point in the history