Summary: | install-xattr fails with "No such file or directory" if the binary to be installed has already been pax-marked | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jason Zaman <perfinion> |
Component: | SELinux | Assignee: | SE Linux Bugs <selinux> |
Status: | RESOLVED UPSTREAM | ||
Severity: | blocker | CC: | base-system, blueness |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 501534 | ||
Attachments: |
build.log with test enabled, resulting in a failure
fix for install-xattr patch with fix as well as added a test case |
Description
Jason Zaman
2014-06-24 15:41:27 UTC
Created attachment 379594 [details]
build.log with test enabled, resulting in a failure
Created attachment 379612 [details, diff]
fix for install-xattr
I put in an echo into the bash wrapper to get the exact command run,
then I strace'd it and the path on the setxattr is wrong. This patch fixes it.
command being run by the ebuild:
exec /usr/bin/install-xattr -m0755 -o 0 -g 0 run/john /var/tmp/portage/app-crypt/johntheripper-1.7.9-r6/image//usr/sbin
install-xattr: setxattr() failed: No such file or directory
excerpt from strace'ing the above command:
setxattr("/var/tmp/portage/app-crypt/johntheripper-1.7.9-r6/image//usr/sbin/run/john", "user.pax.flags", "emr", 3, 0) = -1 ENOENT (No such f
I can confirm that the patch fixes the johntheripper build failure Created attachment 379616 [details, diff]
patch with fix as well as added a test case
This fixes the issue for me. The test case fails without the basename patch and succeeds with it. Can someone else confirm the test script?
(In reply to Jason Zaman from comment #4) > Created attachment 379616 [details, diff] [details, diff] > patch with fix as well as added a test case > > This fixes the issue for me. The test case fails without the basename patch > and succeeds with it. Can someone else confirm the test script? Committed. http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=18586b8eef2dee0f432d7f57b642fa177aebc788 Keeping testing with install-xattr-9999.ebuild so we don't hit the same bug again. |