[iOS] Remove the IOHIDEventServiceFastPathUserClient IOKit class
https://bugs.webkit.org/show_bug.cgi?id=206387
<rdar://problem/58663849>

Reviewed by Per Arne Vollan.

After Bug 204770, we no longer interact with the device motion or geolocation systems inside
the WebContent process. Testing and telemetry shows that we no longer access the
IOHIDEventServiceFastPathUserClient, and so should remove access to it.

No new tests because there is no change in behavior.

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


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@254759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog
index f516afc..be3893b 100644
--- a/Source/WebKit/ChangeLog
+++ b/Source/WebKit/ChangeLog
@@ -1,3 +1,19 @@
+2020-01-17  Brent Fulgham  <bfulgham@apple.com>
+
+        [iOS] Remove the IOHIDEventServiceFastPathUserClient IOKit class
+        https://bugs.webkit.org/show_bug.cgi?id=206387
+        <rdar://problem/58663849>
+
+        Reviewed by Per Arne Vollan.
+
+        After Bug 204770, we no longer interact with the device motion or geolocation systems inside
+        the WebContent process. Testing and telemetry shows that we no longer access the
+        IOHIDEventServiceFastPathUserClient, and so should remove access to it.
+
+        No new tests because there is no change in behavior.
+
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
+
 2020-01-17  Brady Eidson  <beidson@apple.com>
 
         TestWebKitAPI.AsyncFunction.Promise times out on slower machines in debug builds.
diff --git a/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb b/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb
index cab9463..7d61425 100644
--- a/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb
+++ b/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb
@@ -397,29 +397,6 @@
         (home-subpath "/Library/Assets/com_apple_MobileAsset_VoiceServicesVocalizerVoice"))
 )
 
-(define-once (core-motion)
-    ;; CoreMotion
-    (mobile-preferences-read "com.apple.CoreMotion")
-
-    ;; CoreMotion’s deviceMotion API
-    (with-filter
-        (require-any
-            (iokit-registry-entry-class "AppleOscarNub")
-            (iokit-registry-entry-class "AppleSPUHIDInterface"))
-        (allow iokit-get-properties
-            (iokit-property "gyro-interrupt-calibration")))
-    (with-filter
-        (iokit-registry-entry-class "IOHIDEventServiceFastPathUserClient")
-        (allow iokit-open)
-        (allow iokit-get-properties iokit-set-properties
-            (iokit-property "interval"
-                            "mode"
-                            "QueueSize"
-                            "useMag"))
-        (allow iokit-get-properties
-            (iokit-property "client")))
-)
-
 ;; Things required by UIKit
 (define-once (uikit-requirements)
     (mobile-preferences-read
@@ -774,8 +751,6 @@
 
 (allow-preferences-common)
 
-(core-motion)
-
 ;; Home Button
 (with-filter (iokit-registry-entry-class "IOPlatformDevice")
     (allow iokit-get-properties
diff --git a/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb b/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb
index edfc77a..634e291 100644
--- a/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb
+++ b/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb
@@ -409,29 +409,6 @@
         (home-subpath "/Library/Assets/com_apple_MobileAsset_VoiceServicesVocalizerVoice"))
 )
 
-(define-once (core-motion)
-    ;; CoreMotion
-    (mobile-preferences-read "com.apple.CoreMotion")
-
-    ;; CoreMotion’s deviceMotion API
-    (with-filter
-        (require-any
-            (iokit-registry-entry-class "AppleOscarNub")
-            (iokit-registry-entry-class "AppleSPUHIDInterface"))
-        (allow iokit-get-properties
-            (iokit-property "gyro-interrupt-calibration")))
-    (with-filter
-        (iokit-registry-entry-class "IOHIDEventServiceFastPathUserClient")
-        (allow iokit-open (with report) (with telemetry))
-        (allow iokit-get-properties iokit-set-properties
-            (iokit-property "interval"
-                            "mode"
-                            "QueueSize"
-                            "useMag"))
-        (allow iokit-get-properties
-            (iokit-property "client")))
-)
-
 ;; Things required by UIKit
 (define-once (uikit-requirements)
     (mobile-preferences-read
@@ -775,8 +752,6 @@
 
 (allow-preferences-common)
 
-(core-motion)
-
 ;; Home Button
 (with-filter (iokit-registry-entry-class "IOPlatformDevice")
     (allow iokit-get-properties