Bug 1307282 - Remove unused sandbox ruleset macros; r=gcp draft
authorHaik Aftandilian <haftandilian@mozilla.com>
Wed, 28 Sep 2016 16:37:52 -0700
changeset 422633 52ef8da1bf9df868c3f9cc0cbdfdee2147425454
parent 419507 5ffed033557e5b6f9694123f1948f867f913ede3
child 422634 b3d738365a978505fdbc5ba0a94de62a8824e2f2
push id31768
push userhaftandilian@mozilla.com
push dateSat, 08 Oct 2016 03:17:37 +0000
reviewersgcp
bugs1307282
milestone52.0a1
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"