Bug 223943

Summary: [macOS] Reduce logging for uninteresting sandbox violations
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebKit Misc.Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, pvollan, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=225197
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing none

Description Brent Fulgham 2021-03-30 11:41:59 PDT
During testing, we have found a few IOKit properties needed by the macOS Network Process, and a handful of items needed when running in recovery mode. We should unblock these items to allow proper function and to reduce telemetry for items that we don't need to learn more about.
Comment 1 Radar WebKit Bug Importer 2021-03-30 11:45:27 PDT
<rdar://problem/76014115>
Comment 2 Brent Fulgham 2021-03-30 11:47:57 PDT
Created attachment 424669 [details]
Patch
Comment 3 Brent Fulgham 2021-03-30 11:50:36 PDT
Created attachment 424670 [details]
Patch
Comment 4 Per Arne Vollan 2021-03-30 14:16:22 PDT
Comment on attachment 424670 [details]
Patch

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

R=me.

> Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:305
> +    (global-name "com.apple.DiskArbitration.diskarbitrationd")

I think it would be good if we could avoid adding this. One option is to filter with uid == 0.
Comment 5 Brent Fulgham 2021-03-30 14:26:37 PDT
Comment on attachment 424670 [details]
Patch

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

>> Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:305
>> +    (global-name "com.apple.DiskArbitration.diskarbitrationd")
> 
> I think it would be good if we could avoid adding this. One option is to filter with uid == 0.

I'll add it to the uid==0 case, but I think it actually makes sense for Network to interact with disk.
Comment 6 Brent Fulgham 2021-03-30 14:28:36 PDT
Created attachment 424698 [details]
Patch for landing
Comment 7 EWS 2021-03-30 15:25:35 PDT
Committed r275242: <https://commits.webkit.org/r275242>

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