Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 195137
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Jim Ramsay <lack@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Mad Cow <0xdeadbeef@pobox.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ipw3945-1.2.2.ebuild.diff ipw3945-1.2.2.ebuild.diff patch Alon Bar-Lev (RETIRED) 2007-11-14 17:34 0000 1.22 KB Details | Diff
ipw3945-1.2.2-build.patch ipw3945-1.2.2-build.patch patch Alon Bar-Lev (RETIRED) 2007-11-14 17:35 0000 2.51 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 195137 depends on: Show dependency tree
Bug 195137 blocks: 197806
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-08 19:20 0000
emerge of ipw3945 fails with a sandbox access violation. It is apparently
trying to write some stuff in /usr/src/linux/

Reproducible: Always

Steps to Reproduce:
1. emerge ipw3945

Actual Results:  
--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/var/log/sandbox/sandbox-net-wireless_-_ipw3945-1.2.2-15069.log"

open_wr:   /usr/src/linux-2.6.23-rc9/null.gcda
open_wr:   /usr/src/linux-2.6.23-rc9/null.gcda
open_wr:   /usr/src/linux-2.6.23-rc9/null.gcda
open_wr:   /usr/src/linux-2.6.23-rc9/null.gcda
open_wr:   /usr/src/linux-2.6.23-rc9/.lst
open_wr:   /usr/src/linux-2.6.23-rc9/.lst
open_wr:   /usr/src/linux-2.6.23-rc9/null.gcda
--------------------------------------------------------------------------------


Expected Results:  
Emerge successful!

I see the same behaviour in 1.2.0 also.

I can work around this problem by running ebuild directly.

------- Comment #1 From Jakub Moc (RETIRED) 2007-10-08 19:22:12 0000 -------
Please search.

*** This bug has been marked as a duplicate of bug 135745 ***

------- Comment #2 From Daniel Drake 2007-10-24 20:11:51 0000 -------
The .lst violation appears to be something else and specific to ipw3945.
Reopening.

------- Comment #3 From Robert A. 2007-10-24 21:02:21 0000 -------
emerging ipw3945 (1.2.0 and 1.2.2) results in a sandbox error:
"open_wr:   /usr/src/linux-2.6.23/.lst"

------- Comment #4 From kouyu 2007-10-25 03:49:28 0000 -------
Bug 135745 had marked as fixed, so I asked here. Now, is there somebody to be
resolving the problem of ipw3945 sandbox violation? Please help us. Thanks.
Don't leave it or take long time to solve it as bug 135745. Thanks again.

------- Comment #5 From michel 2007-10-25 12:15:04 0000 -------
the same here

ACCESS VIOLATION on compiling ipw3945 on 2.6.23er kernel ... 

FEATURES="-sandbox" emerge -av ipw3945 is the only known possibility to compile

------- Comment #6 From michel 2007-10-29 12:38:31 0000 -------
Maybe can anybody else take care of this bug?!

------- Comment #7 From Pacho Ramos 2007-11-01 19:28:46 0000 -------
I am not affected by any sandbox violation using kernel-2.6.22 instead :-/

------- Comment #8 From kouyu 2007-11-05 02:40:37 0000 -------
(In reply to comment #7)
> I am not affected by any sandbox violation using kernel-2.6.22 instead :-/
> 
But 2.6.23.

------- Comment #9 From Pacho Ramos 2007-11-05 20:19:16 0000 -------
(In reply to comment #8)
> (In reply to comment #7)
> > I am not affected by any sandbox violation using kernel-2.6.22 instead :-/
> > 
> But 2.6.23.
> 

Yes, I see... ;-)

------- Comment #10 From blackace@gentoo.org 2007-11-11 20:11:49 0000 -------
Also seeing this with ipw3945-1.2.1 and hardened-sources-2.6.23-r1.

------- Comment #11 From Alon Bar-Lev (RETIRED) 2007-11-14 17:34:43 0000 -------
Created an attachment (id=135974) [details]
ipw3945-1.2.2.ebuild.diff

Fixups.

------- Comment #12 From Alon Bar-Lev (RETIRED) 2007-11-14 17:35:13 0000 -------
Created an attachment (id=135976) [details]
ipw3945-1.2.2-build.patch

------- Comment #13 From Jan Kundrát 2007-11-22 23:49:10 0000 -------
The attached patch looks sane to me and indeed fixes the issue with denied
write, both with USE=debug and without it. The wireless interface also seems to
work.

Re-assigning to proper maintainers.

------- Comment #14 From kouyu 2007-11-23 17:51:08 0000 -------
The patch seems to fix the problem to me. That's good. Now I can use 2.6.23
with wireless. Hope the patch will be added in new version ipw3945.

------- Comment #15 From Jan Kundrát 2007-11-24 09:36:35 0000 -------
(In reply to comment #14)
> The patch seems to fix the problem to me. That's good. Now I can use 2.6.23
> with wireless. Hope the patch will be added in new version ipw3945.

Strictly speaking, nothing ever prevented you from using it. You only had to
merge it with sandbox disabled (as suggested in comment #5 and in the other
bug), which might be inconvenient, but works.

------- Comment #16 From Alon Bar-Lev (RETIRED) 2007-11-24 10:26:43 0000 -------
(In reply to comment #15)
> Strictly speaking, nothing ever prevented you from using it. You only had to
> merge it with sandbox disabled (as suggested in comment #5 and in the other
> bug), which might be inconvenient, but works.

You cannot expect a user to disable sandbox as his system may be compromised.
Also, you cannot expect a user to follow none gentoo developer recommendation
regarding so risky issue.
Also, please note that the current ebuild does not handle the debug correctly
at all, resulting in enabling it when requested to disable.

The current ebuild is a mess. Please don't recommend user to use it.

------- Comment #17 From Jan Kundrát 2007-11-24 10:38:30 0000 -------
(In reply to comment #16)
> You cannot expect a user to disable sandbox as his system may be compromised.

Note that ebuild can always use RESTRICT=sandbox or a similar method to
completely nuke user's system. Sandbox isn't a security method that guarantees
that ebuilds behave correctly, it just prevents some stupid mistakes on a
programmer's side. Could we please move any further sandbox-related comments to
the gentoo-dev ML, which is IMHO more apropriate?

> The current ebuild is a mess. Please don't recommend user to use it.

Thanks for your patch.

------- Comment #18 From Alon Bar-Lev (RETIRED) 2007-11-24 10:52:41 0000 -------
(In reply to comment #17)
> Note that ebuild can always use RESTRICT=sandbox or a similar method to
> completely nuke user's system. 

I am *REALLY* hopping you don't have *ANY* package with this restriction.

> Sandbox isn't a security method that guarantees
> that ebuilds behave correctly, it just prevents some stupid mistakes on a
> programmer's side. Could we please move any further sandbox-related comments to
> the gentoo-dev ML, which is IMHO more apropriate?

This is my final note about this... sandbox *IS* a security method, as if one
ebuild modify the root, second ebuild may also be effected, thus all your
system modifies its behavior.

Thanks.

------- Comment #19 From Jan Kundrát 2007-11-24 11:06:36 0000 -------
(In reply to comment #18)
> This is my final note about this... sandbox *IS* a security method, as if one
> ebuild modify the root, second ebuild may also be effected, thus all your
> system modifies its behavior.

Point that I've been trying to make here is that sandbox can be circumvented
extremely easy. This means that you couldn't say "I use sandbox, hence my
ebuilds can't overwrite important parts of my live filesystem".

Examples about legitimate cases that disable sandbox and access user's
filesystem can be found in the enewuser/enewgroup functions in eutils.eclass.

------- Comment #20 From Stefan Schweizer 2007-11-25 22:01:36 0000 -------
ty, fixed

------- Comment #21 From Thomas Tuttle 2007-12-05 16:03:13 0000 -------
Can you please patch the ipw3945-1.2.0 ebuild in a similar way, as it is the
latest stable ipw3945 and suffers from the same problem?

------- Comment #22 From Thomas Tuttle 2007-12-05 16:03:32 0000 -------
(Reopening for 1.2.0)

------- Comment #23 From Jan Kundrát 2007-12-05 16:38:37 0000 -------
Let's make 1.2.22 stable instead (discussion for this is in bug 197806).

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