" #\"^%s/\"" /* TempDir/... */
" #\"^%s$\"" /* CacheDir */
" #\"^%s/\"" /* CacheDir/... */
+ " #\"^/private/var/db/\""
" #\"^/private/var/folders/\""
" #\"^/Library/Application Support/\""
" #\"^/Library/Caches/\""
"(allow file-read-data file-read-metadata\n"
" (literal \"/private/etc/services\")\n"
" (regex"
+ " #\"^/AppleInternal$\""
+ " #\"^/AppleInternal/\""
" #\"^/bin$\"" /* /bin */
" #\"^/bin/\"" /* /bin/... */
" #\"^/usr/bin$\"" /* /usr/bin */
cupsFilePuts(fp, "(allow network*\n"
" (local udp \"*:*\")\n"
" (remote udp \"*:*\"))\n");
+
+ /* Also allow access to Bluetooth, USB, and SMB */
+ cupsFilePuts(fp, "(allow iokit-open)\n");
+ cupsFilePuts(fp, "(allow file-read-* file-write (literal \"/dev/nsmb0\"))\n");
}
else
{