| Summary: | gfind doesn't operate normally in sandbox | ||
|---|---|---|---|
| Product: | Gentoo/Alt | Reporter: | Yuta SATOH <nigoro.dev> |
| Component: | FreeBSD | Assignee: | Gentoo/BSD Team <bsd+disabled> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | base-system, ryao, sandbox |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | FreeBSD | ||
| See Also: | https://github.com/gentoo/gentoo/pull/7611 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Yuta SATOH
2011-07-08 10:22:16 UTC
result of find and gfind on sandbox. # 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. * Loading sandboxed shell * Log File: /var/log/sandbox/sandbox-80830.log * Debug Log File: /var/log/sandbox/sandbox-debug-80830.log * sandboxon: turn sandbox on * sandboxoff: turn sandbox off * addread <path>: allow <path> to be read * addwrite <path>: allow <path> to be written * adddeny <path>: deny access to <path> * addpredict <path>: allow fake access to <path> [s] # find / / /stage3-i686-freebsd-8.0.tar.bz2 /bin /bin/bunzip2 /bin/bzcat /bin/rbash /bin/rc-status /bin/red /bin/rnano /bin/tar /bin/uncompress /bin/bash /bin/[ /bin/domainname /bin/bsdcpio /bin/bsdtar /bin/bzip2 /bin/cat /bin/chflags <snip> [s] # gfind / / /stage3-i686-freebsd-8.0.tar.bz2 /bin gfind: `/bin': No such file or directory /dev gfind: `/dev': No such file or directory /tmp gfind: `/tmp': No such file or directory /boot gfind: `/boot': No such file or directory /etc gfind: `/etc': No such file or directory /home gfind: `/home': No such file or directory /lib gfind: `/lib': No such file or directory /libexec gfind: `/libexec': No such file or directory /mnt gfind: `/mnt': No such file or directory /proc gfind: `/proc': No such file or directory /root gfind: `/root': No such file or directory /sbin gfind: `/sbin': No such file or directory /usr gfind: `/usr': No such file or directory /var gfind: `/var': No such file or directory [s] # exit sandbox is heavily broken on fbsd afaik (In reply to comment #2) > sandbox is heavily broken on fbsd afaik hmm... is FEATURES="-sandbox" made effective again ? profiles/default/bsd/fbsd/make.defaults # Sandbox should work now, leaving commented for testing. # FEATURES="-sandbox" last i looked, sandbox passed tests on freebsd. and no one has complained since. so i wouldnt classify that as heavily broken :P. i still ssh access to this "grafias" box, but it doesnt have `gfind` installed. (In reply to comment #4) > last i looked, sandbox passed tests on freebsd. and no one has complained > since. so i wouldnt classify that as heavily broken :P. > > i still ssh access to this "grafias" box, but it doesnt have `gfind` installed. dunno what this grafias box is but my bet is that the current status isnt what you may think: 2.5 doesnt build (bug #317341; hint: i didnt spend time writing this code just for the fun of it... i started this because i experienced problems...) 1.6-r2 fails tests and exhibits the problem described in this bug (In reply to comment #4) > last i looked, sandbox passed tests on freebsd. and no one has complained > since. so i wouldnt classify that as heavily broken :P. > > i still ssh access to this "grafias" box, but it doesnt have `gfind` installed. grafias is my router/firewall server, it's now a bit more "decent" (upgraded, and finally replaced the ide-80wire-dma-fail disks with sata) you can find gfind installed to test, it is still at sandbox-1.6-r2, and I can reproduce this bug there, feel free to break it. The "No such file or directory" error comes from readlink on these lines in libsandbox.c: sprintf(at_file_buf, "/proc/%i/fd/%i", getpid(), dirfd); ssize_t ret = readlink(at_file_buf, at_file_buf, at_len); seems to be triggered by fstatat() called by gfind. no /proc/pid/"fd" on bsd. bah, usually no /proc. This affects dev-libs/glib-2.30.3, which has a build log for this issue in bug #408791. + 30 Mar 2012; Alexis Ballier <aballier@gentoo.org> sandbox-1.6-r2.ebuild: + keyword -x86-fbsd for bug #374425, sandbox is broken of fbsd and this leaves + us with nothing. + The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56475a1baab800a0668d6464a698b06c48776d60 commit 56475a1baab800a0668d6464a698b06c48776d60 Author: Yuta Satoh <nigoro.dev@gmail.com> AuthorDate: 2018-03-25 12:28:37 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-03-29 18:53:32 +0000 sys-apps/sandbox: drop ~x86-fbsd keyword. Closes: https://bugs.gentoo.org/374425 Closes: https://github.com/gentoo/gentoo/pull/7611 Package-Manager: Portage-2.3.19, Repoman-2.3.6 sys-apps/sandbox/sandbox-2.12.ebuild | 2 +- sys-apps/sandbox/sandbox-2.13.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) |