Modified: trunk/Source/WebKit/ChangeLog (270878 => 270879)
--- trunk/Source/WebKit/ChangeLog 2020-12-16 04:59:45 UTC (rev 270878)
+++ trunk/Source/WebKit/ChangeLog 2020-12-16 06:57:51 UTC (rev 270879)
@@ -1,3 +1,17 @@
+2020-12-15 Commit Queue <[email protected]>
+
+ Unreviewed, reverting r270829.
+ https://bugs.webkit.org/show_bug.cgi?id=219935
+
+ Introduced crash
+
+ Reverted changeset:
+
+ "[macOS] Add sandbox parameter for message filter entitlement
+ status"
+ https://bugs.webkit.org/show_bug.cgi?id=219852
+ https://trac.webkit.org/changeset/270829
+
2020-12-15 Andy Estes <[email protected]>
[Mac] Numerous webgl tests continue to time out with the WebM format reader enabled
Modified: trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (270878 => 270879)
--- trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2020-12-16 04:59:45 UTC (rev 270878)
+++ trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2020-12-16 06:57:51 UTC (rev 270879)
@@ -92,7 +92,6 @@
#import <wtf/FileSystem.h>
#import <wtf/ProcessPrivilege.h>
#import <wtf/SoftLinking.h>
-#import <wtf/cocoa/Entitlements.h>
#import <wtf/cocoa/NSURLExtras.h>
#import <wtf/cocoa/RuntimeApplicationChecksCocoa.h>
#import <wtf/cocoa/VectorCocoa.h>
@@ -672,9 +671,6 @@
sandboxParameters.setOverrideSandboxProfilePath(makeString(String([webKitBundle resourcePath]), "/com.apple.WebProcess.sb"));
- auto hasMessageFilterEntitlement = WTF::processHasEntitlement("com.apple.private.security.message-filter");
- sandboxParameters.addParameter("ENABLE_SANDBOX_MESSAGE_FILTER", hasMessageFilterEntitlement ? "YES" : "NO");
-
AuxiliaryProcess::initializeSandbox(parameters, sandboxParameters);
#endif
}
Modified: trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in (270878 => 270879)
--- trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2020-12-16 04:59:45 UTC (rev 270878)
+++ trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2020-12-16 06:57:51 UTC (rev 270879)
@@ -120,16 +120,14 @@
(iokit-connection "IOAccelerator")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow
- iokit-async-external-method
- iokit-external-method
- )
- (allow (with telemetry)
- iokit-external-trap
- )
+ (apply-message-filter
+ (allow
+ iokit-async-external-method
+ iokit-external-method
)
+ (allow (with telemetry)
+ iokit-external-trap
+ )
)
#endif
)
@@ -137,13 +135,11 @@
(iokit-registry-entry-class "IOAccelerationUserClient")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -152,16 +148,14 @@
(iokit-registry-entry-class "IOSurfaceRootUserClient")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow
- iokit-async-external-method
- iokit-external-method
- )
- (allow (with telemetry)
- iokit-external-trap
- )
+ (apply-message-filter
+ (allow
+ iokit-async-external-method
+ iokit-external-method
)
+ (allow (with telemetry)
+ iokit-external-trap
+ )
)
#endif
)
@@ -169,13 +163,11 @@
(iokit-registry-entry-class "IOSurfaceSendRight")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -194,20 +186,18 @@
)
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow
- iokit-external-method
- )
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- )
+ (apply-message-filter
+ (allow
+ iokit-external-method
)
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ )
)
#endif
)
-
+
;; This is needed for Encrypted Media on some hardware (MacMini8,1 for example)
(allow iokit-open
(require-all
@@ -216,16 +206,14 @@
)
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow
- iokit-external-method
- )
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- )
+ (apply-message-filter
+ (allow
+ iokit-external-method
)
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ )
)
#endif
)
@@ -235,13 +223,11 @@
(iokit-registry-entry-class "AGPMClient")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -250,16 +236,14 @@
(iokit-registry-entry-class "AppleGraphicsControlClient")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow
- iokit-async-external-method
- iokit-external-method
- )
- (allow (with telemetry)
- iokit-external-trap
- )
+ (apply-message-filter
+ (allow
+ iokit-async-external-method
+ iokit-external-method
)
+ (allow (with telemetry)
+ iokit-external-trap
+ )
)
#endif
)
@@ -267,13 +251,11 @@
(iokit-registry-entry-class "AppleGraphicsPolicyClient")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -283,13 +265,11 @@
(iokit-registry-entry-class "AppleMGPUPowerControlClient")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -872,13 +852,11 @@
(iokit-user-client-class "AppleUpstreamUserClient")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -891,13 +869,11 @@
)
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -907,13 +883,11 @@
(iokit-user-client-class "AudioAUUC") ;; <rdar://problem/10427451> && <rdar://problem/10808817>
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -923,13 +897,11 @@
(iokit-user-client-class "IOAudioControlUserClient")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -939,13 +911,11 @@
(iokit-user-client-class "IOAudioEngineUserClient")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -1264,13 +1234,11 @@
(iokit-user-client-class "IOUSBDeviceUserClientV2")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -1279,13 +1247,11 @@
(iokit-user-client-class "IOUSBInterfaceUserClientV2")
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
- (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES")
- (apply-message-filter
- (allow (with telemetry)
- iokit-async-external-method
- iokit-external-trap
- iokit-external-method
- )
+ (apply-message-filter
+ (allow (with telemetry)
+ iokit-async-external-method
+ iokit-external-trap
+ iokit-external-method
)
)
#endif
@@ -1550,7 +1516,7 @@
#endif
#if HAVE(SANDBOX_MESSAGE_FILTERING)
-(if (and (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES") (defined? 'mach-bootstrap))
+(when (defined? 'mach-bootstrap)
(allow mach-bootstrap
(apply-message-filter
(deny xpc-message-send (with telemetry))
@@ -1567,7 +1533,7 @@
)
)
-(if (and (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES") (defined? 'mach-kernel-endpoint))
+(when (defined? 'mach-kernel-endpoint)
(allow mach-kernel-endpoint
(apply-message-filter
(deny mach-message-send (with telemetry))
@@ -1635,7 +1601,7 @@
)
)
-(if (and (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES") (defined? 'syscall-mach))
+(when (defined? 'syscall-mach)
(deny syscall-mach (with telemetry))
(allow syscall-mach (machtrap-number
MSC__kernelrpc_mach_port_allocate_trap