Ticket #42428: patch-portsandbox.tcl.diff
File patch-portsandbox.tcl.diff, 943 bytes (added by ajdudman, 10 years ago) |
---|
-
portsandbox.tcl
83 83 } 84 84 85 85 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\") \ 87 88 (literal \"/dev/dtracehelper\") (literal \"/dev/tty\") \ 88 89 (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/\"))" 91 95 92 96 foreach dir $allow_dirs { 93 97 append portsandbox_profile " (allow file-write* ("