Title: [285582] trunk/Source/WebKit
- Revision
- 285582
- Author
- [email protected]
- Date
- 2021-11-10 09:15:29 -0800 (Wed, 10 Nov 2021)
Log Message
[iOS][GPUP] Remove access to sysctl properties
https://bugs.webkit.org/show_bug.cgi?id=232821
<rdar://problem/85162088>
Reviewed by Brent Fulgham.
Based on telemetry, remove access to unused sysctl properties in the GPU process' sandbox on iOS.
* Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb:
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (285581 => 285582)
--- trunk/Source/WebKit/ChangeLog 2021-11-10 17:12:43 UTC (rev 285581)
+++ trunk/Source/WebKit/ChangeLog 2021-11-10 17:15:29 UTC (rev 285582)
@@ -1,5 +1,17 @@
2021-11-10 Per Arne Vollan <[email protected]>
+ [iOS][GPUP] Remove access to sysctl properties
+ https://bugs.webkit.org/show_bug.cgi?id=232821
+ <rdar://problem/85162088>
+
+ Reviewed by Brent Fulgham.
+
+ Based on telemetry, remove access to unused sysctl properties in the GPU process' sandbox on iOS.
+
+ * Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb:
+
+2021-11-10 Per Arne Vollan <[email protected]>
+
[iOS][GPUP] Remove access to mach-register
https://bugs.webkit.org/show_bug.cgi?id=232442
<rdar://problem/84763289>
Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb (285581 => 285582)
--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb 2021-11-10 17:12:43 UTC (rev 285581)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb 2021-11-10 17:15:29 UTC (rev 285582)
@@ -270,7 +270,7 @@
(iokit-property "MetalPluginName")
)
- (allow sysctl-read (with telemetry)
+ (allow sysctl-read
(sysctl-name #"kern.bootsessionuuid"))
(allow mach-lookup (with telemetry)
@@ -526,7 +526,7 @@
"sysctl.proc_native"))
(with-filter (system-attribute apple-internal)
- (allow sysctl-read sysctl-write (with telemetry)
+ (allow sysctl-read sysctl-write
(sysctl-name "vm.footprint_suspend"))
(allow nvram-get (with telemetry) (nvram-variable "emu")) ;; <rdar://problem/78363040>
)
@@ -653,54 +653,23 @@
;;; End UIKit-apps.sb content
;;;
-(deny sysctl*)
+(deny sysctl* (with telemetry))
(allow sysctl-read (with telemetry)
(sysctl-name
"hw.activecpu"
- "hw.availcpu"
- "hw.cacheconfig" ;; <rdar://problem/78213563>
"hw.cachelinesize"
- "hw.cachesize" ;; <rdar://problem/78213563>
- "hw.cpufamily" ;; <rdar://problem/15721872>
- "hw.cpusubfamily"
- "hw.cputhreadtype"
- "hw.cputype"
- "hw.l1dcachesize" ;; <rdar://problem/15721872>
- "hw.l1icachesize" ;; <rdar://problem/15721872>
"hw.l2cachesize"
- "hw.l3cachesize" ;; <rdar://problem/15721872>
- "hw.logicalcpu"
"hw.logicalcpu_max"
- "hw.ncpu"
- "hw.nperflevels" ;; <rdar://problem/76782530>
- "hw.pagesize" ;; <rdar://problem/76782530>
"hw.machine"
"hw.memsize"
"hw.model"
- "hw.ncpu"
- "hw.nperflevels"
- "hw.pagesize" ;; <rdar://problem/76782530>
"hw.pagesize_compat"
- "hw.physicalcpu"
"hw.physicalcpu_max"
- "hw.physmem" ;; <rdar://problem/76782530>
"hw.product" ;; <rdar://problem/81334849>
- "hw.vectorunit" ;; <rdar://problem/76782530>
- "kern.bootargs"
- "kern.hostname"
- "kern.hv_vmm_present"
- "kern.memorystatus_level"
"kern.osproductversion"
- "kern.osrelease"
"kern.osvariant_status"
- "kern.osversion"
"kern.secure_kernel"
- "kern.version"
- "sysctl.name2oid"
- "vm.footprint_suspend")
- (sysctl-name-prefix "hw.optional.") ;; <rdar://problem/70973527>
- (sysctl-name-prefix "hw.perflevel") ;; <rdar://problem/76782530>
-)
+ "vm.footprint_suspend"))
(allow iokit-get-properties
(iokit-property "AAPL,DisplayPipe")
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes