Title: [253777] trunk
Revision
253777
Author
[email protected]
Date
2019-12-19 11:48:34 -0800 (Thu, 19 Dec 2019)

Log Message

Deny mach lookup access to "com.apple.TextInput" in the WebContent process
https://bugs.webkit.org/show_bug.cgi?id=205423
<rdar://problem/56990842>

Reviewed by Per Arne Vollan.

Source/WebKit:

Telemetry and thorough testing has confirmed that we do not need access to this
mach service, and so should remove it.

Tested by fast/sandbox/ios/sandbox-mach-lookup.html.

* Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:

LayoutTests:

* fast/sandbox/ios/sandbox-mach-lookup-expected.txt:
* fast/sandbox/ios/sandbox-mach-lookup.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (253776 => 253777)


--- trunk/LayoutTests/ChangeLog	2019-12-19 19:33:49 UTC (rev 253776)
+++ trunk/LayoutTests/ChangeLog	2019-12-19 19:48:34 UTC (rev 253777)
@@ -1,3 +1,14 @@
+2019-12-19  Brent Fulgham  <[email protected]>
+
+        Deny mach lookup access to "com.apple.TextInput" in the WebContent process
+        https://bugs.webkit.org/show_bug.cgi?id=205423
+        <rdar://problem/56990842>
+
+        Reviewed by Per Arne Vollan.
+
+        * fast/sandbox/ios/sandbox-mach-lookup-expected.txt:
+        * fast/sandbox/ios/sandbox-mach-lookup.html:
+
 2019-12-19  Chris Dumez  <[email protected]>
 
         Unreviewed tests gardening

Modified: trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup-expected.txt (253776 => 253777)


--- trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup-expected.txt	2019-12-19 19:33:49 UTC (rev 253776)
+++ trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup-expected.txt	2019-12-19 19:48:34 UTC (rev 253777)
@@ -6,4 +6,5 @@
 PASS internals.hasSandboxMachLookupAccessToXPCServiceName("com.apple.WebKit.WebContent", "com.apple.apple-extension-service") is false
 PASS internals.hasSandboxMachLookupAccessToXPCServiceName("com.apple.WebKit.WebContent", "com.apple.viewservice") is false
 PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.pluginkit.pkd") is false
+PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.TextInput") is false
 

Modified: trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup.html (253776 => 253777)


--- trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup.html	2019-12-19 19:33:49 UTC (rev 253776)
+++ trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup.html	2019-12-19 19:48:34 UTC (rev 253777)
@@ -9,6 +9,7 @@
     shouldBeFalse("internals.hasSandboxMachLookupAccessToXPCServiceName(\"com.apple.WebKit.WebContent\", \"com.apple.apple-extension-service\")");
     shouldBeFalse("internals.hasSandboxMachLookupAccessToXPCServiceName(\"com.apple.WebKit.WebContent\", \"com.apple.viewservice\")");
     shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.pluginkit.pkd\")");
+    shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.TextInput\")");
 }
 </script>
 </head>

Modified: trunk/Source/WebKit/ChangeLog (253776 => 253777)


--- trunk/Source/WebKit/ChangeLog	2019-12-19 19:33:49 UTC (rev 253776)
+++ trunk/Source/WebKit/ChangeLog	2019-12-19 19:48:34 UTC (rev 253777)
@@ -1,3 +1,18 @@
+2019-12-19  Brent Fulgham  <[email protected]>
+
+        Deny mach lookup access to "com.apple.TextInput" in the WebContent process
+        https://bugs.webkit.org/show_bug.cgi?id=205423
+        <rdar://problem/56990842>
+
+        Reviewed by Per Arne Vollan.
+
+        Telemetry and thorough testing has confirmed that we do not need access to this
+        mach service, and so should remove it.
+
+        Tested by fast/sandbox/ios/sandbox-mach-lookup.html.
+
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
+
 2019-12-19  youenn fablet  <[email protected]>
 
         CacheStorageEngine should not clear caches memory representation for ephemeral sessions

Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb (253776 => 253777)


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb	2019-12-19 19:33:49 UTC (rev 253776)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb	2019-12-19 19:48:34 UTC (rev 253777)
@@ -726,10 +726,6 @@
 
 (url-translation)
 
-;; TextInput framework
-(allow mach-lookup (with report) (with telemetry)
-    (global-name "com.apple.TextInput"))
-
 (mobile-preferences-read "com.apple.da")
 
 (speech-synthesis-and-voiceover)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to