Restructure initial distinct sandbox profiles
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jun 2014 17:22:33 +0000 (17:22 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jun 2014 17:22:33 +0000 (17:22 +0000)
commit092bf7c343f5f00276e498fe476fc0feb548b2f8
treef5fcc11bfd638f2c72d42b88eca6b5df1a6e9976
parentb088c9197f14a0a3318d320106f395f56e48e748
Restructure initial distinct sandbox profiles
https://bugs.webkit.org/show_bug.cgi?id=133415

Reviewed by Alexey Proskuryakov.

Add support for manually instantiating the network and
content process sandboxes, and add initial profiles.
These profiles are completely generic so we can make sure
nothing is broken by enabling them.

This also adds a target to the WebKit2 project to correctly
process the profiles.

* DatabaseProcess/ios/DatabaseProcessIOS.mm:
(WebKit::DatabaseProcess::initializeSandbox):
* DatabaseProcess/ios/com.apple.WebKit.DatabasesIOS.sb: Removed.
* NetworkProcess/ios/NetworkProcessIOS.mm:
(WebKit::NetworkProcess::initializeSandbox):
* Resources/SandboxProfiles/ios/com.apple.WebKit.Databases.sb: Added.
* Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb: Added.
* Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: Added.
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::initializeSandbox):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/DatabaseProcess/ios/DatabaseProcessIOS.mm
Source/WebKit2/DatabaseProcess/ios/com.apple.WebKit.DatabasesIOS.sb [deleted file]
Source/WebKit2/NetworkProcess/ios/NetworkProcessIOS.mm
Source/WebKit2/Resources/SandboxProfiles/ios/com.apple.WebKit.Databases.sb [new file with mode: 0644]
Source/WebKit2/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb [new file with mode: 0644]
Source/WebKit2/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb [new file with mode: 0644]
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Source/WebKit2/WebKit2Prefix.h
Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm