[98200] trunk/base/src/port1.0/portsandbox.tcl

jmr at macports.org jmr at macports.org
Fri Sep 28 14:56:01 PDT 2012


Revision: 98200
          http://trac.macports.org//changeset/98200
Author:   jmr at macports.org
Date:     2012-09-28 14:56:01 -0700 (Fri, 28 Sep 2012)
Log Message:
-----------
add /tmp to sandbox

Modified Paths:
--------------
    trunk/base/src/port1.0/portsandbox.tcl

Modified: trunk/base/src/port1.0/portsandbox.tcl
===================================================================
--- trunk/base/src/port1.0/portsandbox.tcl	2012-09-28 17:43:56 UTC (rev 98199)
+++ trunk/base/src/port1.0/portsandbox.tcl	2012-09-28 21:56:01 UTC (rev 98200)
@@ -61,7 +61,8 @@
     # TODO: remove altprefix support
     lappend allow_dirs $workpath $altprefix
 
-    set portsandbox_profile "(version 1) (allow default) (deny file-write*)"
+    set portsandbox_profile "(version 1) (allow default) (deny file-write*) \
+(allow file-write-data (literal \"/dev/null\")) (allow file-write* (regex #\"^(/private)?/tmp/\"))"
     foreach dir $allow_dirs {
         append portsandbox_profile " (allow file-write* "
         if {${os.major} > 9} {
@@ -71,5 +72,4 @@
         }
         append portsandbox_profile ")"
     }
-    append portsandbox_profile " (allow file-write-data (literal \"/dev/null\"))"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120928/459da2df/attachment.html>


More information about the macports-changes mailing list