Title: [285606] trunk/Source/WebKit
Revision
285606
Author
[email protected]
Date
2021-11-10 12:30:06 -0800 (Wed, 10 Nov 2021)

Log Message

[macOS][GPUP] Remove access to sysctl properties
https://bugs.webkit.org/show_bug.cgi?id=232329
<rdar://problem/84679628>

Reviewed by Darin Adler.

Based on telemetry, remove access to unused sysctl properties in the GPU process' sandbox on macOS.

* GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (285605 => 285606)


--- trunk/Source/WebKit/ChangeLog	2021-11-10 20:26:27 UTC (rev 285605)
+++ trunk/Source/WebKit/ChangeLog	2021-11-10 20:30:06 UTC (rev 285606)
@@ -1,3 +1,15 @@
+2021-11-10  Per Arne Vollan <[email protected]>
+
+        [macOS][GPUP] Remove access to sysctl properties
+        https://bugs.webkit.org/show_bug.cgi?id=232329
+        <rdar://problem/84679628>
+
+        Reviewed by Darin Adler.
+
+        Based on telemetry, remove access to unused sysctl properties in the GPU process' sandbox on macOS.
+
+        * GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:
+
 2021-11-10  Chris Dumez  <[email protected]>
 
         Add basic support for launching CaptivePortalMode WebProcesses

Modified: trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in (285605 => 285606)


--- trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in	2021-11-10 20:26:27 UTC (rev 285605)
+++ trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in	2021-11-10 20:30:06 UTC (rev 285606)
@@ -155,68 +155,33 @@
 (allow process-info-setcontrol (target self))
 (allow process-codesigning-status*)
 
-(deny sysctl*)
+(deny sysctl* (with telemetry))
 (allow sysctl-read (with telemetry)
     (sysctl-name
-        "hw.activecpu" ;; <rdar://problem/56795575>
-        "hw.availcpu"
-        "hw.byteorder"
-        "hw.busfrequency"
-        "hw.busfrequency_max"
-        "hw.cacheconfig" ;; <rdar://problem/78213563>
-        "hw.cachelinesize" ;; <rdar://problem/56795575>
-        "hw.cachesize" ;; <rdar://problem/78213563>
-        "hw.cpufamily" ;; <rdar://problem/58416475>
-        "hw.cpufrequency"
-        "hw.cpufrequency_max"
+        "hw.activecpu"
+        "hw.cachelinesize"
+        "hw.cpufamily"
         "hw.cpusubfamily"
         "hw.cputhreadtype"
         "hw.cputype"
-        "hw.l1dcachesize" ;; <rdar://problem/56795575>
-        "hw.l1icachesize" ;; <rdar://problem/56795575>
-        "hw.l2cachesize" ;; <rdar://problem/56795575>
-        "hw.l3cachesize" ;; <rdar://problem/56795575>
-        "hw.logicalcpu" ;; <rdar://problem/56795575>
-        "hw.logicalcpu_max" ;; <rdar://problem/56795575>
-        "hw.machine"
+        "hw.l2cachesize"
+        "hw.logicalcpu"
+        "hw.logicalcpu_max"
         "hw.memsize"
         "hw.model"
         "hw.ncpu"
-        "hw.nperflevels" ;; <rdar://problem/76783596>
-        "hw.pagesize" ;; <rdar://problem/76783596>
-        "hw.pagesize_compat" ;; <rdar://problem/76783596>
-        "hw.physicalcpu" ;; <rdar://problem/58416475>
-        "hw.physicalcpu_max" ;; <rdar://problem/58416475>
-        "hw.tbfrequency"
-        "hw.tbfrequency_compat"
+        "hw.physicalcpu"
+        "hw.physicalcpu_max"
         "hw.vectorunit"
-        "kern.bootargs" ;; <rdar://problem/47738015>
         "kern.hostname"
         "kern.hv_vmm_present"
         "kern.maxfilesperproc"
-        "kern.memorystatus_level"
-        "kern.osproductversion" ;; <rdar://problem/51756739>
-        "kern.osrelease"
-        "kern.ostype"
-        "kern.osvariant_status"
-        "kern.osversion"
-        "kern.safeboot"
-        "kern.version"
-        "machdep.cpu.brand_string"
-        "security.mac.sandbox.sentinel"
-        "sysctl.name2oid"
-        "kern.tcsm_enable"
-        "kern.tcsm_available"
-        "vm.footprint_suspend")
-    (sysctl-name-prefix "net.routetable")
+        "kern.osproductversion"
+        "kern.osrelease")
     (sysctl-name-prefix "hw.optional.") ;; <rdar://problem/71462790>
     (sysctl-name-prefix "hw.perflevel") ;; <rdar://problem/76783596>
 )
 
-(allow sysctl-write (with telemetry)
-    (sysctl-name
-        "kern.tcsm_enable"))
-
 (deny iokit-get-properties)
 (allow iokit-get-properties
     (iokit-property "AAPL,LCD-PowerState-ON") ;; <rdar://problem/47738015>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to