Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4106)

Unified Diff: chrome/browser/gpu.sb

Issue 5580002: Mac: Tell the GPU sandbox to deny a few things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works in release Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/chrome_switches.cc » ('j') | chrome/common/sandbox_mac.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu.sb
diff --git a/chrome/browser/gpu.sb b/chrome/browser/gpu.sb
index ce5b2d2f727472959c692847b43dd0bf945472a0..9cd27b829f2a4c5346160e424c3eb463ebc8df08 100644
--- a/chrome/browser/gpu.sb
+++ b/chrome/browser/gpu.sb
@@ -6,5 +6,14 @@
; *** The contents of chrome/common/common.sb are implicitly included here. ***
-; TODO(thakis): Deny most things by default.
-(allow default)
+; The GPU process opens a shared memory file to communicate with the renderer.
+; This is backed by a file in /var/folders.
+(allow file-read* file-write* (regex "^/(private/)?(tmp|var)(/|$)"))
jeremy 2010/12/03 14:22:09 I'm a bit apprehensive about opening this since th
Nico 2010/12/04 00:26:10 Worth thinking about…I've filed a bug and put in a
Nico 2010/12/04 01:58:36 Turns out that the ringbuffer creation fails if I
+
+; Without this, the GPU process prints
+; *** CFMessagePort: bootstrap_register(): failed 268435459 (0x10000003) '(ipc/send) invalid destination port', port = 0x5907, name = 'com.apple.tsm.portname'
+; That's probably harmless, but allowing the look-up is also probably harmless.
jeremy 2010/12/03 14:22:09 I don't think you need this comment. Perhaps some
Nico 2010/12/04 00:26:10 Done.
jeremy 2010/12/05 08:04:50 Are you sure you need this? Does this cause thing
+(allow mach-lookup (global-name "com.apple.tsm.uiserver"))
+
+; From renderer.sb
jeremy 2010/12/03 14:22:09 Could you change this comment to the system call t
Nico 2010/12/04 00:26:10 Done, removed the comment.
+(allow file-read-metadata (literal "/"))
« no previous file with comments | « no previous file | chrome/common/chrome_switches.cc » ('j') | chrome/common/sandbox_mac.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698