Bug 232329

Summary: [macOS][GPUP] Remove access to sysctl properties
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, darin, gavin.p, mazander, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Per Arne Vollan 2021-10-26 13:46:19 PDT
Based on telemetry, remove access to unused sysctl properties in the GPU process' sandbox on macOS.
Comment 1 Radar WebKit Bug Importer 2021-10-26 13:46:53 PDT
<rdar://problem/84679628>
Comment 2 Per Arne Vollan 2021-10-26 13:48:36 PDT
Created attachment 442527 [details]
Patch
Comment 3 Darin Adler 2021-10-26 13:56:14 PDT
Comment on attachment 442527 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=442527&action=review

> Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:173
> -(deny sysctl*)
> +(deny sysctl* (with telemetry))

This change is not mentioned in the change log. What’s the rationale?
Comment 4 Per Arne Vollan 2021-10-26 14:04:02 PDT
(In reply to Darin Adler from comment #3)
> Comment on attachment 442527 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=442527&action=review
> 
> > Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:173
> > -(deny sysctl*)
> > +(deny sysctl* (with telemetry))
> 
> This change is not mentioned in the change log. What’s the rationale?

This is to get telemetry for sysctl properties we might need to add in the future when new features being are added to the GPU process.

Thanks for reviewing!
Comment 5 Per Arne Vollan 2021-11-10 12:26:31 PST
Comment on attachment 442527 [details]
Patch

Thanks for reviewing!
Comment 6 EWS 2021-11-10 12:30:13 PST
Committed r285606 (244110@main): <https://commits.webkit.org/244110@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 442527 [details].