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)

PowerPC
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla30

People

(Reporter: stevensn, Assigned: jld)

Details

Attachments

(1 file)

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.
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)
Yeah, that's broken.  I think I know what needs to be fixed here.
Assignee: nobody → jld
Flags: needinfo?(jld)
Attached patch bug979686.diffSplinter Review
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)
Does attachment 8387029 [details] [diff] [review] fix the PPC desktop build for you?
Flags: needinfo?(steve)
Attachment #8387029 - Flags: review?(gdestuynder) → review+
ppc64 builds fine with this patch applied.
Thanks
Flags: needinfo?(steve)
https://hg.mozilla.org/mozilla-central/rev/9a83a9b580ab
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: