Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 196720
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Sandbox Maintainers <sandbox@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: SpanKY <vapier@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 196720 depends on: 182361 Show dependency tree
Bug 196720 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-22 17:08 0000
any machine using glibc-2.7 gets sandbox failures on just about anything
(usually complaining about /etc/passwd and /etc/group when they get opened for
reading *only*)

27502 open("/etc/group", O_RDONLY|0x80000 /* O_??? */) = 5

the new flag 0x80000 causes the failure

------- Comment #1 From SpanKY 2007-10-22 19:48:54 0000 -------
# define O_CLOEXEC     02000000 /* Set close_on_exec.  */

(in hex, that is 0x80000)

------- Comment #2 From David Pyke 2007-10-23 14:17:48 0000 -------
Is it possible to have the glibc-2.7 ebuild masked as opposed to having a die
command with a note to review this bug?

While this is a very interesting bug, it doesn't offer suggestions as to how to
overcome the upgrade issue.

------- Comment #3 From SpanKY 2007-10-23 17:00:33 0000 -------
(1) it is masked seeing as how it doesnt have any KEYWORDS
(2) there is no solution in the message because none currently exists

------- Comment #4 From SpanKY 2007-10-23 23:45:17 0000 -------
looks like the "e" fopen() for cloexec pisses it off

fixed in 1.2.18.1-r2

------- Comment #5 From SpanKY 2007-11-10 09:11:11 0000 -------
*** Bug 198509 has been marked as a duplicate of this bug. ***

------- Comment #6 From Stefan Triller 2007-11-10 16:59:35 0000 -------
Alright, went back to glibc 2.6.1, and portage emerges fine with sandbox

but still: someone needs to fix it for glibc 2.7...

------- Comment #7 From SpanKY 2007-11-10 21:50:51 0000 -------
it's already been fixed, hence the bug being closed as "FIXED"

------- Comment #8 From Maurice Volaski 2007-11-16 04:36:50 0000 -------
In case anyone gets trapped in a catch-22 where glibc-2.7 got installed and now
they can't emerge the new sandbox or anything for that matter, execute 

export FEATURES="-sandbox" 

and then you can emerge the new sandbox. 

------- Comment #9 From SpanKY 2007-11-16 06:21:50 0000 -------
"got installed" implies the package should have been on your system when
there's absolutely no way it could have been without the user putting glibc
into accept keywords locally

at any rate, that should work, but if it doesnt, i just do:
rm /usr/lib/libsandbox*
emerge sandbox

------- Comment #10 From Jakub Moc (RETIRED) 2007-12-05 19:47:53 0000 -------
*** Bug 201409 has been marked as a duplicate of this bug. ***

------- Comment #11 From Kevin J Meagher 2007-12-05 20:30:57 0000 -------
it looks like this was caused by a bug in portage
the new version of sandbox failed, but then emerge --resume --skipfirst went a
ahead and installed the version of glibc that depended on sandbox without it
being at the right version

------- Comment #12 From SpanKY 2007-12-05 22:48:50 0000 -------
--skipfirst is a powerful tool ... portage isnt going to protect you from doing
something stupid with it

there are related feature requests in portage, but you telling emerge to do
something dumb isnt a bug in portage

------- Comment #13 From SpanKY 2008-11-09 08:01:46 0000 -------
*** Bug 198509 has been marked as a duplicate of this bug. ***

------- Comment #14 From Anton Romanov 2009-01-21 13:48:08 0000 -------
i still have this bug with 
sys-apps/sandbox-1.3.2
sys-libs/glibc-2.9_p20081201-r1
shouldn't this be reopened?

------- Comment #15 From SpanKY 2009-01-21 16:38:10 0000 -------
once you verify that your system has no stale libsandbox binaries in /lib*/,
open a new bug.  i doubt you're having the same problem here.

------- Comment #16 From Anton Romanov 2009-01-21 18:00:30 0000 -------
(In reply to comment #15)
> once you verify that your system has no stale libsandbox binaries in /lib*/,
gosh.. i'm embarassed
sorry

------- Comment #17 From SpanKY 2009-01-21 18:19:35 0000 -------
np ... i'll add a sanity check to the sandbox ebuild

------- Comment #18 From Stefan Triller 2009-01-23 00:06:23 0000 -------
(In reply to comment #15)
> once you verify that your system has no stale libsandbox binaries in /lib*/,
> open a new bug.  i doubt you're having the same problem here.
> 

Someone should have told me earlier to delete those files!
I was running portage with -sandbox since about over one year now, but now it
works with the sandbox again.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug