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
fails to parse gnu tar xattrs (CentOS Docker base image) #752
Comments
Can you attach an example tar file please? |
I generated this by simply doing (with the same binaries as above, though this time as root so I could easily set the security attribute):
|
A long time ago, star and libarchive implemented xattr support in slightly different ways. GNU tar chose to copy their implementation from star rather than from libarchive. There's a pull request to add the ability to read star-format xattr entries to libarchive. I've not yet had time to review it thoroughly, but it's certainly on my to-do list. |
Is this still an issue after #691 has been merged? |
This should have been fixed with #691 |
The CentOS docker base image is created ultimately via a tool that ultimately uses GNU
tar
. In CentOS, the/usr/bin/ping
binary has file capabilities.We're trying to import this tarball into OSTree which ultimately uses libarchive.
Now, ostree is currently treating the warning as fatal, which we could easily change, but at the cost of losing the xattr here. I thought libarchive was able to parse GNU xattrs, but this case seems to fail.
Minimal reproducer looks like:
The text was updated successfully, but these errors were encountered: