Diff
Modified: branches/safari-614.1.7-branch/Source/WebKit/ChangeLog (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/ChangeLog 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/ChangeLog 2022-03-26 20:35:01 UTC (rev 291944)
@@ -1,5 +1,54 @@
2022-03-26 Russell Epstein <[email protected]>
+ Cherry-pick r291943. rdar://problem/90878560
+
+ Update the check in the sandbox profiles to guard the system content path rules
+ https://bugs.webkit.org/show_bug.cgi?id=238419
+ rdar://90878560
+
+ Reviewed by Per Arne Vollan.
+
+ Replace `USE(SYSTEM_CONTENT_PATH)` in the sandbox profiles with a different feature flag
+ so that we can enable these rules independently even if WebKit itself isn't using the
+ system content path.
+
+ * GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:
+ * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.WebAuthn.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in:
+ * WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in:
+ * WebProcess/com.apple.WebProcess.sb.in:
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@291943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-03-26 David Quesada <[email protected]>
+
+ Update the check in the sandbox profiles to guard the system content path rules
+ https://bugs.webkit.org/show_bug.cgi?id=238419
+ rdar://90878560
+
+ Reviewed by Per Arne Vollan.
+
+ Replace `USE(SYSTEM_CONTENT_PATH)` in the sandbox profiles with a different feature flag
+ so that we can enable these rules independently even if WebKit itself isn't using the
+ system content path.
+
+ * GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:
+ * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.WebAuthn.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in:
+ * WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in:
+ * WebProcess/com.apple.WebProcess.sb.in:
+
+2022-03-26 Russell Epstein <[email protected]>
+
Cherry-pick r291941. rdar://problem/90878872
REGRESSION(r291814): WebAuthn sandbox profile is missing
Modified: branches/safari-614.1.7-branch/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in 2022-03-26 20:35:01 UTC (rev 291944)
@@ -32,7 +32,7 @@
#include "Shared/Sandbox/preferences.sb"
-#if USE(SYSTEM_CONTENT_PATH)
+#if ENABLE(SYSTEM_CONTENT_PATH_SANDBOX_RULES)
#include <WebKitAdditions/SystemContentSandbox-macos.defs>
#endif
Modified: branches/safari-614.1.7-branch/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in 2022-03-26 20:35:01 UTC (rev 291944)
@@ -38,7 +38,7 @@
#include "Shared/Sandbox/preferences.sb"
-#if USE(SYSTEM_CONTENT_PATH)
+#if ENABLE(SYSTEM_CONTENT_PATH_SANDBOX_RULES)
#include <WebKitAdditions/SystemContentSandbox-macos.defs>
#endif
Modified: branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in 2022-03-26 20:35:01 UTC (rev 291944)
@@ -853,7 +853,7 @@
MSC_task_self_trap
MSC_thread_get_special_reply_port)))
-#if USE(SYSTEM_CONTENT_PATH)
+#if ENABLE(SYSTEM_CONTENT_PATH_SANDBOX_RULES)
#include <WebKitAdditions/SystemContentSandbox-ios.defs>
(allow file-read* file-test-existence
Modified: branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb.in 2022-03-26 20:35:01 UTC (rev 291944)
@@ -789,7 +789,7 @@
(apply-message-filter
(allow mach-message-send (with report) ))))
-#if USE(SYSTEM_CONTENT_PATH)
+#if ENABLE(SYSTEM_CONTENT_PATH_SANDBOX_RULES)
#include <WebKitAdditions/SystemContentSandbox-ios.defs>
(allow file-read* file-test-existence
Modified: branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebAuthn.sb.in (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebAuthn.sb.in 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebAuthn.sb.in 2022-03-26 20:35:01 UTC (rev 291944)
@@ -446,7 +446,7 @@
(literal "/private/var/run/syslog"))
)
-#if USE(SYSTEM_CONTENT_PATH)
+#if ENABLE(SYSTEM_CONTENT_PATH_SANDBOX_RULES)
#include <WebKitAdditions/SystemContentSandbox-ios.defs>
(allow file-read* file-test-existence
Modified: branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in 2022-03-26 20:35:01 UTC (rev 291944)
@@ -1651,7 +1651,7 @@
"com.apple.automation.stringlookupinfoenabled"
"com.apple.webinspectord.availability_check"))
-#if USE(SYSTEM_CONTENT_PATH)
+#if ENABLE(SYSTEM_CONTENT_PATH_SANDBOX_RULES)
#include <WebKitAdditions/SystemContentSandbox-ios.defs>
(allow file-read* file-test-existence
Modified: branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.adattributiond.sb.in 2022-03-26 20:35:01 UTC (rev 291944)
@@ -192,7 +192,7 @@
(allow mach-lookup
(global-name "com.apple.cfnetwork.cfnetworkagent"))
-#if USE(SYSTEM_CONTENT_PATH)
+#if ENABLE(SYSTEM_CONTENT_PATH_SANDBOX_RULES)
#include <WebKitAdditions/SystemContentSandbox-ios.defs>
(allow file-read* file-test-existence
Modified: branches/safari-614.1.7-branch/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in 2022-03-26 20:35:01 UTC (rev 291944)
@@ -31,7 +31,7 @@
#include "Shared/Sandbox/preferences.sb"
-#if USE(SYSTEM_CONTENT_PATH)
+#if ENABLE(SYSTEM_CONTENT_PATH_SANDBOX_RULES)
#include <WebKitAdditions/SystemContentSandbox-macos.defs>
#endif
Modified: branches/safari-614.1.7-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in (291943 => 291944)
--- branches/safari-614.1.7-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2022-03-26 20:30:34 UTC (rev 291943)
+++ branches/safari-614.1.7-branch/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2022-03-26 20:35:01 UTC (rev 291944)
@@ -32,7 +32,7 @@
#include "Shared/Sandbox/preferences.sb"
-#if USE(SYSTEM_CONTENT_PATH)
+#if ENABLE(SYSTEM_CONTENT_PATH_SANDBOX_RULES)
#include <WebKitAdditions/SystemContentSandbox-macos.defs>
#endif