Ticket #42428: patch-portsandbox.tcl.diff

File patch-portsandbox.tcl.diff, 943 bytes (added by ajdudman, 8 years ago)

This patch allows Yosemite/Xcode to write files under "/opt/.TemporaryItems/".

  • portsandbox.tcl

     
    8383    }
    8484
    8585    set portsandbox_profile "(version 1) (allow default) (deny file-write*) \
    86 (allow file-write-data (literal \"/dev/null\") (literal \"/dev/zero\") \
     86(allow file-write-data \
     87(literal \"/dev/null\") (literal \"/dev/zero\") \
    8788(literal \"/dev/dtracehelper\") (literal \"/dev/tty\") \
    8889(literal \"/dev/stdin\") (literal \"/dev/stdout\") (literal \"/dev/stderr\") \
    89 (regex #\"^/dev/fd/\")) (allow file-write* \
    90 (regex #\"^(/private)?(/var)?/tmp/\" #\"^(/private)?/var/folders/\"))"
     90(regex #\"^/dev/fd/\")) \
     91(allow file-write* \
     92(regex #\"^/opt/.TemporaryItems/\") \
     93(regex #\"^(/private)?(/var)?/tmp/\") \
     94(regex #\"^(/private)?/var/folders/\"))"
    9195
    9296    foreach dir $allow_dirs {
    9397        append portsandbox_profile " (allow file-write* ("