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

archive: ignore the security.selinux xattr #1077

Merged
merged 3 commits into from
Nov 29, 2021

Conversation

giuseppe
Copy link
Member

ignore the security.selinux xattr if it is present in the tarball header, since invalid labels cannot be set by unprivileged users and the lsetxattr syscall fails with EINVAL.

Closes: #1076

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
ignore the security.selinux xattr if it is present in the tarball
header, since invalid labels cannot be set by unprivileged users and
the `lsetxattr` syscall fails with EINVAL.

Closes: containers#1076

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe
Copy link
Member Author

@flouthoc PTAL

Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I remember facing same issue with redroid image while debugging some issue. I left comment of selinux label here: containers/podman#12189 (comment) . I wonder what is the intention behind such image.

@rhatdan
Copy link
Member

rhatdan commented Nov 29, 2021

LGTM

@rhatdan rhatdan merged commit 13f2d57 into containers:main Nov 29, 2021
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.

Unable to pull image : Error processing tar file(exit status 1): lsetxattr /vendor: invalid argument
3 participants