Bug 1307282 - Remove unused sandbox ruleset macros; r=gcp
authorHaik Aftandilian <haftandilian@mozilla.com>
Wed, 28 Sep 2016 16:37:52 -0700
changeset 317104 0a7e549e1e9194274b93f4b230e62b1e0226bb34
parent 317103 61aed24ee7e7d856f0a3bee895dc85b443f69d91
child 317105 e80c8083d9330539c2dd884ce698c067996fb274
push id30792
push userphilringnalda@gmail.com
push dateSat, 08 Oct 2016 23:47:45 +0000
treeherdermozilla-central@313a2d049350 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp
bugs1307282
milestone52.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 1307282 - Remove unused sandbox ruleset macros; r=gcp MozReview-Commit-ID: A7x55tDN4b9
security/sandbox/mac/Sandbox.mm
--- a/security/sandbox/mac/Sandbox.mm
+++ b/security/sandbox/mac/Sandbox.mm
@@ -232,35 +232,21 @@ static const char contentSandboxRules[] 
   "  (define (home-subpath home-relative-subpath)\n"
   "    (resolving-subpath (string-append home-path home-relative-subpath)))\n"
   "  (define (home-literal home-relative-literal)\n"
   "    (resolving-literal (string-append home-path home-relative-literal)))\n"
   "\n"
   "  (define (profile-subpath profile-relative-subpath)\n"
   "    (resolving-subpath (string-append profileDir profile-relative-subpath)))\n"
   "\n"
-  "  (define (container-regex container-relative-regex)\n"
-  "    (resolving-regex (string-append \"^\" (regex-quote container-path) container-relative-regex)))\n"
-  "  (define (container-subpath container-relative-subpath)\n"
-  "    (resolving-subpath (string-append container-path container-relative-subpath)))\n"
-  "  (define (container-literal container-relative-literal)\n"
-  "    (resolving-literal (string-append container-path container-relative-literal)))\n"
-  "\n"
   "  (define (var-folders-regex var-folders-relative-regex)\n"
   "    (resolving-regex (string-append var-folders-re var-folders-relative-regex)))\n"
   "  (define (var-folders2-regex var-folders2-relative-regex)\n"
   "    (resolving-regex (string-append var-folders2-re var-folders2-relative-regex)))\n"
   "\n"
-  "  (define (appdir-regex appdir-relative-regex)\n"
-  "    (resolving-regex (string-append \"^\" (regex-quote appdir-path) appdir-relative-regex)))\n"
-  "  (define (appdir-subpath appdir-relative-subpath)\n"
-  "    (resolving-subpath (string-append appdir-path appdir-relative-subpath)))\n"
-  "  (define (appdir-literal appdir-relative-literal)\n"
-  "    (resolving-literal (string-append appdir-path appdir-relative-literal)))\n"
-  "\n"
   "  (define (allow-shared-preferences-read domain)\n"
   "        (begin\n"
   "          (if (defined? `user-preference-read)\n"
   "            (allow user-preference-read (preference-domain domain)))\n"
   "          (allow file-read*\n"
   "                 (home-literal (string-append \"/Library/Preferences/\" domain \".plist\"))\n"
   "                 (home-regex (string-append \"/Library/Preferences/ByHost/\" (regex-quote domain) \"\\..*\\.plist$\")))\n"
   "          ))\n"