Closed
Bug 1355083
Opened 9 years ago
Closed 9 years ago
[sandbox] don't use compiler defines to parametrize sandbox policies
Categories
(Core :: Security: Process Sandboxing, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: Alex_Gaynor, Assigned: Alex_Gaynor)
References
Details
Attachments
(1 file)
https://dxr.mozilla.org/mozilla-central/source/security/sandbox/mac/Sandbox.mm#424-428
this should just use a normal parameter
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•9 years ago
|
Attachment #8856508 -
Flags: review?(haftandilian)
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → agaynor
| Assignee | ||
Comment 2•9 years ago
|
||
Uploaded a straightforward patch for this, but I couldn't find a name for the DEBUG variable that I liked -- you can't just use |debug| because it conflicts with an existing |debug| function -- suggestions welcomed.
Comment 3•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8856508 [details]
Bug 1355083 - Switch from using a #define to alter a sandbox policy to a normal param
https://reviewboard.mozilla.org/r/128460/#review130916
Let's go with isDebugBuild. The "Camel Case" matches most of the other variables and we're faking a boolean with this variable. Plus variable names with hyphens are scary. And it should indicate the variable is just for flagging we're in a debug Firefox build and it's not for debugging the sandbox or anything like that.
Attachment #8856508 -
Flags: review?(haftandilian) → review+
| Comment hidden (mozreview-request) |
Comment 5•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8856508 [details]
Bug 1355083 - Switch from using a #define to alter a sandbox policy to a normal param
https://reviewboard.mozilla.org/r/128460/#review130926
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/5b7e7bd08789
Switch from using a #define to alter a sandbox policy to a normal param r=haik
Keywords: checkin-needed
Comment 7•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•