RESOLVED FIXED 145229
[WK2][iOS] Update WebContent process sandbox profile for AWD logging
https://bugs.webkit.org/show_bug.cgi?id=145229
Summary [WK2][iOS] Update WebContent process sandbox profile for AWD logging
Chris Dumez
Reported 2015-05-20 16:04:49 PDT
Update WebContent process sandbox profile for AWD logging. Radar: <rdar://problem/20543269>
Attachments
Patch (1.80 KB, patch)
2015-05-20 16:05 PDT, Chris Dumez
no flags
Patch (1.80 KB, patch)
2015-05-20 16:54 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2015-05-20 16:05:53 PDT
Alexey Proskuryakov
Comment 2 2015-05-20 16:12:58 PDT
Comment on attachment 253469 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=253469&action=review > Source/WebKit2/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:86 > +(allow file-write-create > + (literal "/private/var/mobile/Library/Logs/awd/awd-com.apple.WebKit.WebContent.log")) Seems very unlikely that this is enough, we need at least file-write-data in addition to file-write-create. Or even file-write*. How did you test?
Chris Dumez
Comment 3 2015-05-20 16:54:23 PDT
Chris Dumez
Comment 4 2015-05-20 16:55:36 PDT
(In reply to comment #2) > Comment on attachment 253469 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=253469&action=review > > > Source/WebKit2/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:86 > > +(allow file-write-create > > + (literal "/private/var/mobile/Library/Logs/awd/awd-com.apple.WebKit.WebContent.log")) > > Seems very unlikely that this is enough, we need at least file-write-data in > addition to file-write-create. Or even file-write*. > > How did you test? I didn't try to restart the app *after* the file was created. When relaunching the app, it turns out I need file-read-data and file-write-data as well. Therefore, I used file-write* / file-read*.
WebKit Commit Bot
Comment 5 2015-05-20 20:07:03 PDT
Comment on attachment 253478 [details] Patch Clearing flags on attachment: 253478 Committed r184693: <http://trac.webkit.org/changeset/184693>
WebKit Commit Bot
Comment 6 2015-05-20 20:07:08 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.