Bug 223192

Summary: Enforce subcommand filtering
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
bfulgham: review+
Patch
bfulgham: review-, bfulgham: commit-queue-
Patch bfulgham: review+

Description Per Arne Vollan 2021-03-15 10:31:18 PDT
Enforce subcommand filtering in the WebContent process' sandbox.
Comment 1 Per Arne Vollan 2021-03-15 10:31:47 PDT
<rdar://75434409>
Comment 2 Per Arne Vollan 2021-03-15 10:37:02 PDT
Created attachment 423195 [details]
Patch
Comment 3 Per Arne Vollan 2021-03-15 10:43:33 PDT
Created attachment 423197 [details]
Patch
Comment 4 Brent Fulgham 2021-03-15 10:56:50 PDT
Comment on attachment 423197 [details]
Patch

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

r=me

> Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:1549
> +    (allow file-ioctl (literal "/dev/dtracehelper"))

Whoops!
Comment 5 Per Arne Vollan 2021-03-15 11:38:32 PDT
Created attachment 423208 [details]
Patch
Comment 6 Per Arne Vollan 2021-03-15 12:31:51 PDT
Created attachment 423219 [details]
Patch
Comment 7 Brent Fulgham 2021-03-15 12:49:32 PDT
Comment on attachment 423219 [details]
Patch

r=me
Comment 8 Per Arne Vollan 2021-03-15 13:06:16 PDT
Created attachment 423227 [details]
Patch
Comment 9 Brent Fulgham 2021-03-15 13:13:17 PDT
Comment on attachment 423227 [details]
Patch

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

> Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:1356
> +        (fcntl-command F_OFD_SETLK)

Need to close this clause: )
Comment 10 Per Arne Vollan 2021-03-15 13:19:29 PDT
Created attachment 423229 [details]
Patch
Comment 11 Per Arne Vollan 2021-03-15 13:20:34 PDT
(In reply to Brent Fulgham from comment #9)
> Comment on attachment 423227 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=423227&action=review
> 
> > Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:1356
> > +        (fcntl-command F_OFD_SETLK)
> 
> Need to close this clause: )

Done.

Thanks for reviewing!
Comment 12 Brent Fulgham 2021-03-15 13:29:12 PDT
Comment on attachment 423229 [details]
Patch

r=me
Comment 13 Per Arne Vollan 2021-03-15 14:23:39 PDT
Landed <https://trac.webkit.org/changeset/274439/webkit>.