Summary: | sys-apps/sandbox: renameat/symlinkat are incorrectly rejected (as used by `ln` in sys-apps/coreutils-8.27) | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Alex <fuantaji> |
Component: | Sandbox | Assignee: | Sandbox Maintainers <sandbox> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, hadrien.lacour, harlowcw, icebalm, jstein, saintdev, toralf |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=612880 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
libtool_buildlog
libtool |
Description
Alex
2017-03-10 13:46:57 UTC
coreutils-8.26 ~ $ sandbox ============================= Gentoo path sandbox ============================== Detection of the support files. Verification of the required files. Setting up the required environment variables. The protected environment has been started. -------------------------------------------------------------------------------- Process being started in forked instance. ~ $ touch bash ~ $ ln -sf /bin/bash bash ~ $ rm bash ~ $ exit Cleaning up sandbox process ============================= Gentoo path sandbox ============================== The protected environment has been shut down. -------------------------------------------------------------------------------- coreutils-8.27 ~ $ sandbox ============================= Gentoo path sandbox ============================== Detection of the support files. Verification of the required files. Setting up the required environment variables. The protected environment has been started. -------------------------------------------------------------------------------- Process being started in forked instance. ~ $ touch bash ~ $ ln -sf /bin/bash bash * ACCESS DENIED: renameat: /home/alex/CuoP4Oaz ln: failed to create symbolic link 'bash': Permission denied ~ $ rm bash ~ $ exit Cleaning up sandbox process ============================= Gentoo path sandbox ============================== The protected environment has been shut down. * --------------------------- ACCESS VIOLATION SUMMARY --------------------------- * LOG FILE: "/tmp/sandbox-12410.log" * VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: renameat S: deny P: CuoP4Oaz A: /home/alex/CuoP4Oaz R: /bin/bash C: ln -sf /bin/bash bash * -------------------------------------------------------------------------------- ln -sf is executed in src_install in libtool-2.4.6-r3.ebuild src_install() { default local x while read -d $'\0' -r x ; do ln -sf "${EPREFIX}"/usr/share/gnuconfig/${x##*/} "${x}" || die done < <(find "${ED}" '(' -name config.guess -o -name config.sub ')' -print0) } simple repro: $ sandbox $ ln -sf /asdf ./foo $ ln -sf /asdf ./foo * ACCESS DENIED: symlinkat: /usr/local/src/gentoo/sandbox/foo ln: failed to create symbolic link './foo': Permission denied Created attachment 466608 [details]
libtool_buildlog
libtool_buildlog
Created attachment 466622 [details]
libtool
I'm experiencing the same build failure. Logs attached fix is here: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=4c47cfa22802fd8201586bef233d8161df4ff61b and included in 2.10-r4 & 2.11-r5 *** Bug 612240 has been marked as a duplicate of this bug. *** *** Bug 612242 has been marked as a duplicate of this bug. *** *** Bug 612392 has been marked as a duplicate of this bug. *** *** Bug 619614 has been marked as a duplicate of this bug. *** *** Bug 616678 has been marked as a duplicate of this bug. *** *** Bug 616070 has been marked as a duplicate of this bug. *** Users who come here: this is a sandbox issue. Upgrading sandbox to version (~)2.10-r4 should be a workaround/solution. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d151daaab1ce39f5b9bf09e0f300010d44064341 commit d151daaab1ce39f5b9bf09e0f300010d44064341 Author: Robin H. Johnson <robbat2@gentoo.org> AuthorDate: 2017-10-10 16:43:56 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2017-10-10 16:47:22 +0000 sys-apps/coreutils: ensure sandbox supports renameat/symlinkat. Prior to sys-apps/sandbox-2.10-r4, sandbox does not correct handle the renameat or symlinkat calls made by newer coreutils. This causes random sandbox violations during package building. Package-Manager: Portage-2.3.8, Repoman-2.3.3 Bug: https://bugs.gentoo.org/612202 Closes: https://bugs.gentoo.org/628928 Closes: https://bugs.gentoo.org/633902 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> sys-apps/coreutils/coreutils-8.27.ebuild | 1 + sys-apps/coreutils/coreutils-8.28.ebuild | 1 + 2 files changed, 2 insertions(+)} *** Bug 635000 has been marked as a duplicate of this bug. *** |