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

uncertainty and limitation when tracing destination of tarball extraction for SBOM #8

Open
lluan444 opened this issue Nov 17, 2021 · 0 comments

Comments

@lluan444
Copy link
Collaborator

Consider the following scenario of tracing an install that involves extracting a tarball during docker build.

WORKDIR /opt/
RUN wget https://download.com/cloud/tools/abc.tar.gz -O abc.tar.gz &&\
    tar xvf abc.tar.gz &&\
    rm abc.tar.gz &&\

The tartball abc.tar.gz contains the following directory and files. Notice that the tarball file name is different from the leading directory name in the tarball content, e.g. abc vs somedir.
/somedir/file1
/somedir/file2

Without knowing the tarball directory information, we do not know the precise destination path of the extracted files by just parsing a Dockerfile. Currently the trace uses the parent directory as the destination, e.g. /opt/, and could not produce a valid SBOM component for it.

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

No branches or pull requests

1 participant