Bug 1521167 [Mac] Sandbox violation logging is always enabled with early startup r=Alex_Gaynor
authorHaik Aftandilian <haftandilian@mozilla.com>
Tue, 22 Jan 2019 14:00:27 +0000
changeset 514832 f71ebb7632fb7e9e8f8514f377c12e9a52430da1
parent 514831 d9e1039ecab03119610f4dea535eff9d9a51c901
child 514833 b038cb88e3416f0de01204590f772dbf2d47d2f9
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersAlex_Gaynor
bugs1521167
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1521167 [Mac] Sandbox violation logging is always enabled with early startup r=Alex_Gaynor For sandbox early startup, ensure violation logging is only enabled when the parent passes the -sbLogging flag. Differential Revision: https://phabricator.services.mozilla.com/D17013
security/sandbox/mac/Sandbox.h
--- a/security/sandbox/mac/Sandbox.h
+++ b/security/sandbox/mac/Sandbox.h
@@ -41,17 +41,17 @@ typedef struct _MacSandboxPluginInfo {
 typedef struct _MacSandboxInfo {
   _MacSandboxInfo()
       : type(MacSandboxType_Default),
         level(0),
         hasFilePrivileges(false),
         hasSandboxedProfile(false),
         hasAudio(false),
         hasWindowServer(false),
-        shouldLog(true) {}
+        shouldLog(false) {}
   _MacSandboxInfo(const struct _MacSandboxInfo& other) = default;
 
   MacSandboxType type;
   int32_t level;
   bool hasFilePrivileges;
   bool hasSandboxedProfile;
   bool hasAudio;
   bool hasWindowServer;