gecko-dev/toolkit/xre
Haik Aftandilian 9de1898bc2 Bug 1290619 - Content sandbox rules should use actual profile directory, not Profiles/*/ regex's; r=jimm
Passes the profile dir to the content process as a -profile CLI
option so that the correct profile dir can be used in the OS X content
sandbox rules.  Only enabled on OS X for now.

On Nightly, profile directories will now be read/write protected
from the content process (apart from a few profile subdirectories) even
when they don't reside in ~/Library.

xpcshell tests invoke the content process without providing a
profile directory. In that case, we don't need to add filesystem
profile dir. read/write exclusion rules to the sandbox.

This patch adds two new macros to the content sandbox rule set:
|profileDir| holds the path to the profile or the emptry string;
|hasProfileDir| is a boolean (1 or 0) that indicates whether or
not the profile directory rules should be added. If |hasProfileDir|
is 0, profile directory exclusion rules don't need to be added
and |profileDir| is not used.

MozReview-Commit-ID: rrTcQwTNdT

--HG--
extra : rebase_source : 3d5b612c8eb3a1d0da028eba277cd9d6f0c9ac00
2016-08-30 13:32:21 -07:00
..
test Bug 1180684 - Part 1. Analyze MOV with GS. r=aklotz 2016-09-07 16:15:58 +09:00
CreateAppData.cpp
EventTracer.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
EventTracer.h
glxtest.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
MacApplicationDelegate.h
MacApplicationDelegate.mm
MacAutoreleasePool.h
MacAutoreleasePool.mm
MacLaunchHelper.h Bug 1250901: Replace waitpid with NSTask's waitUntilExit. r=mstange f=rstrong 2016-08-31 18:56:48 -04:00
MacLaunchHelper.mm Bug 1250901: Replace waitpid with NSTask's waitUntilExit. r=mstange f=rstrong 2016-08-31 18:56:48 -04:00
Makefile.in
moz.build Bug 1295480 - Move --enable-ipdl-tests to python configure. r=chmanchester 2016-08-17 11:01:40 +09:00
MozMeegoAppService.h
nsAndroidStartup.cpp
nsAppRunner.cpp merge mozilla-central to mozilla-inbound to fix spidermonkey bustage. r=merge a=merge 2016-09-07 18:49:04 +02:00
nsAppRunner.h Bug 1274540 - Record sandboxing status in crash reports; r=gcp 2016-07-25 13:21:00 +02:00
nsCommandLineServiceMac.cpp Bug 828704: Avoid duplicate -foreground argument when launching Firefox on OSX. r=mstange 2016-04-21 15:53:32 -04:00
nsCommandLineServiceMac.h
nsConsoleWriter.cpp
nsEmbedFunctions.cpp Bug 1290619 - Content sandbox rules should use actual profile directory, not Profiles/*/ regex's; r=jimm 2016-08-30 13:32:21 -07:00
nsGDKErrorHandler.cpp
nsGDKErrorHandler.h
nsINativeAppSupport.idl
nsIWinAppHelper.idl
nsNativeAppSupportBase.cpp
nsNativeAppSupportBase.h
nsNativeAppSupportCocoa.mm
nsNativeAppSupportDefault.cpp
nsNativeAppSupportUnix.cpp Bug 694570 - (4/4) - Drop unused Xatom.h include. r=karlt 2016-06-20 08:17:00 +02:00
nsNativeAppSupportWin.cpp Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
nsNativeAppSupportWin.h
nsSigHandlers.cpp Ignore SIGINT on all subprocesses. (bug 1277068, r=billm) 2016-05-31 21:49:31 -07:00
nsSigHandlers.h
nsUpdateDriver.cpp Bug 1250901: Replace waitpid with NSTask's waitUntilExit. r=mstange f=rstrong 2016-08-31 18:56:48 -04:00
nsUpdateDriver.h Bug 1272614 - Avoid blocking where possible while waiting for the updater to stage; r=spohl 2016-08-04 12:54:01 -07:00
nsWindowsRestart.cpp Bug 1256027 - Windows, why you gotta hate. r=scumbag-windows in a CLOSED TREE 2016-03-23 18:40:01 -07:00
nsWindowsWMain.cpp Bug 1279769 - Remove VS2013 workaround for crash on non-AVX2 processors. r=froydnj 2016-06-26 16:07:44 -07:00
nsX11ErrorHandler.cpp Bug 1285554 - Remove remnants of widget/qt. r=dougt,mshal. 2016-07-12 09:16:45 +10:00
nsX11ErrorHandler.h
nsXREDirProvider.cpp Bug 1296606 - Add telemetry to see how many profiles users have, r=MattN, r=bugs 2016-08-31 15:18:56 -07:00
nsXREDirProvider.h Bug 1270018 - NS_APP_CONTENT_PROCESS_TEMP_DIR should only return the sandbox writeable temp. r=bobowen, r=bsmedberg 2016-07-05 14:48:25 -07:00
platform.ini
ProfileReset.cpp Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
ProfileReset.h Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
UIKitDirProvider.h
UIKitDirProvider.mm
updaterfileutils_osx.h Bug 394984: Enable any admin user on OSX to update Firefox, native OSX changes. r=mstange 2016-05-24 22:25:16 -04:00
updaterfileutils_osx.mm Bug 394984: Enable any admin user on OSX to update Firefox, native OSX changes. r=mstange 2016-05-24 22:25:16 -04:00