Title: [253848] trunk
Revision
253848
Author
[email protected]
Date
2019-12-20 15:15:00 -0800 (Fri, 20 Dec 2019)

Log Message

Remove access to 'com.apple.cfprefsd.agent' from the macOS sandbox
https://bugs.webkit.org/show_bug.cgi?id=205478
<rdar://problem/57915066>

Reviewed by Darin Adler.

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/sandboxing/mac

* WebProcess/com.apple.WebProcess.sb.in:

LayoutTests:

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

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (253847 => 253848)


--- trunk/LayoutTests/ChangeLog	2019-12-20 22:59:44 UTC (rev 253847)
+++ trunk/LayoutTests/ChangeLog	2019-12-20 23:15:00 UTC (rev 253848)
@@ -1,3 +1,14 @@
+2019-12-20  Brent Fulgham  <[email protected]>
+
+        Remove access to 'com.apple.cfprefsd.agent' from the macOS sandbox
+        https://bugs.webkit.org/show_bug.cgi?id=205478
+        <rdar://problem/57915066>
+
+        Reviewed by Darin Adler.
+
+        * fast/sandbox/mac/sandbox-mach-lookup-expected.txt:
+        * fast/sandbox/mac/sandbox-mach-lookup.html:
+
 2019-12-20  Alexey Proskuryakov  <[email protected]>
 
         Update TestExpectatipons for media/track/track-in-band-cues-added-once.html

Modified: trunk/LayoutTests/fast/sandbox/mac/sandbox-mach-lookup-expected.txt (253847 => 253848)


--- trunk/LayoutTests/fast/sandbox/mac/sandbox-mach-lookup-expected.txt	2019-12-20 22:59:44 UTC (rev 253847)
+++ trunk/LayoutTests/fast/sandbox/mac/sandbox-mach-lookup-expected.txt	2019-12-20 23:15:00 UTC (rev 253848)
@@ -3,5 +3,6 @@
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
+PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.cfprefsd.agent") is false
 PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.system.logger") is false
 

Modified: trunk/LayoutTests/fast/sandbox/mac/sandbox-mach-lookup.html (253847 => 253848)


--- trunk/LayoutTests/fast/sandbox/mac/sandbox-mach-lookup.html	2019-12-20 22:59:44 UTC (rev 253847)
+++ trunk/LayoutTests/fast/sandbox/mac/sandbox-mach-lookup.html	2019-12-20 23:15:00 UTC (rev 253848)
@@ -6,6 +6,7 @@
 description('Regression tests for mach lookup sandbox changes on macOS');
 
 if (window.internals) {
+    shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.cfprefsd.agent\")");
     shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.system.logger\")");
 }
 </script>

Modified: trunk/Source/WebKit/ChangeLog (253847 => 253848)


--- trunk/Source/WebKit/ChangeLog	2019-12-20 22:59:44 UTC (rev 253847)
+++ trunk/Source/WebKit/ChangeLog	2019-12-20 23:15:00 UTC (rev 253848)
@@ -1,3 +1,18 @@
+2019-12-20  Brent Fulgham  <[email protected]>
+
+        Remove access to 'com.apple.cfprefsd.agent' from the macOS sandbox
+        https://bugs.webkit.org/show_bug.cgi?id=205478
+        <rdar://problem/57915066>
+
+        Reviewed by Darin Adler.
+
+        Telemetry and thorough testing has confirmed that we do not need access to this
+        mach service, and so should remove it.
+
+        Tested by fast/sandboxing/mac
+
+        * WebProcess/com.apple.WebProcess.sb.in:
+
 2019-12-20  Brian Burg  <[email protected]>
 
         Unreviewed, try to fix the non-unified sources build.

Modified: trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in (253847 => 253848)


--- trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2019-12-20 22:59:44 UTC (rev 253847)
+++ trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2019-12-20 23:15:00 UTC (rev 253848)
@@ -608,7 +608,6 @@
 #endif
     (global-name "com.apple.audio.AudioComponentRegistrar")
     (global-name "com.apple.awdd")
-    (global-name "com.apple.cfprefsd.agent")
     (global-name "com.apple.cookied")
     (global-name "com.apple.diagnosticd")
     (global-name "com.apple.iconservices")
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to