Closed
Bug 979686
Opened 10 years ago
Closed 10 years ago
sandbox unsupported on non x86/x86_64/arm platforms
Categories
(Toolkit Graveyard :: Security, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla30
People
(Reporter: stevensn, Assigned: jld)
Details
Attachments
(1 file)
889 bytes,
patch
|
kang
:
review+
|
Details | Diff | Splinter Review |
bug 970676 https://hg.mozilla.org/mozilla-central/rev/c1a0493fa09e turned MOZ_CONTENT_SANDBOX on for all Linux platforms. However linux_seccomp.h only has support for the tier 1 platforms. Builds on powerpc give security/sandbox/linux/linux_seccomp.h:221:2: error: #error Unsupported target platform I presume linux sparc or MIPS builds will give the same error.
Reporter | ||
Comment 1•10 years ago
|
||
Jeff, I don't have permissions to read or link to Bug 970676 so I am not sure the intent of the change is. I can get things compiling again on ppc if I switch the #ifdef on #include "mozilla/Sandbox.h and in RecvSetProcessPrivileges to be MOZ_CONTENT_SANDBOX instead of XP_LINUX but I'm not sure if that is correct? Should we be setting MOZ_CONTENT_SANDBOX in configure.in for linux arm/x86/x86_64 ? Or do we need another flag that indicates if the platform is Sandbox capable?
Flags: needinfo?(jld)
Assignee | ||
Comment 2•10 years ago
|
||
Yeah, that's broken. I think I know what needs to be fixed here.
Assignee: nobody → jld
Flags: needinfo?(jld)
Assignee | ||
Comment 3•10 years ago
|
||
Try: https://tbpl.mozilla.org/?tree=Try&rev=2d24119670d4 Tested locally by adding an unconditional #error next to the one that was breaking and building x86_64 desktop. Also tested that this doesn't regress on B2G/ARM.
Attachment #8387029 -
Flags: review?(gdestuynder)
Assignee | ||
Comment 4•10 years ago
|
||
Does attachment 8387029 [details] [diff] [review] fix the PPC desktop build for you?
Flags: needinfo?(steve)
Attachment #8387029 -
Flags: review?(gdestuynder) → review+
Reporter | ||
Comment 5•10 years ago
|
||
ppc64 builds fine with this patch applied. Thanks
Flags: needinfo?(steve)
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 6•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9a83a9b580ab
Keywords: checkin-needed
Comment 7•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9a83a9b580ab
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Updated•8 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•