RESOLVED FIXED 212177
[WK2] WebKit abandons compiled sandbox profiles
https://bugs.webkit.org/show_bug.cgi?id=212177
Summary [WK2] WebKit abandons compiled sandbox profiles
Chris Dumez
Reported 2020-05-20 16:32:45 PDT
WebKit generates new compiled sandbox profiles whenever sandbox profiles are updated or whenever webkit directories change (which is super common for WebKitTestRunner). Previous compiled sandbox profiles do not get deleted and therefore may accumulate.
Attachments
Patch (2.32 KB, patch)
2020-05-20 16:35 PDT, Chris Dumez
no flags
Patch (2.36 KB, patch)
2020-05-21 08:25 PDT, Chris Dumez
no flags
Patch (3.23 KB, patch)
2020-07-27 10:47 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2020-05-20 16:32:55 PDT
Chris Dumez
Comment 2 2020-05-20 16:35:35 PDT
Saam Barati
Comment 3 2020-05-20 17:29:44 PDT
Comment on attachment 399913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=399913&action=review > Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm:259 > + // We save the profiles in the user tempory directory so that they get cleaned after on reboot "after on" => "on"
Saam Barati
Comment 4 2020-05-20 17:30:38 PDT
Comment on attachment 399913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=399913&action=review > Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm:260 > + // or if they are not accessed in 3 days. This avoids accumulating profiles whenever we change "in 3 days" => "for 3 days"
Saam Barati
Comment 5 2020-05-20 17:31:13 PDT
Comment on attachment 399913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=399913&action=review >> Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm:260 >> + // or if they are not accessed in 3 days. This avoids accumulating profiles whenever we change > > "in 3 days" => "for 3 days" actually, I'm not sure which is more grammatically correct. I'll leave it up to you
Chris Dumez
Comment 6 2020-05-21 08:22:51 PDT
Comment on attachment 399913 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=399913&action=review >> Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm:259 >> + // We save the profiles in the user tempory directory so that they get cleaned after on reboot > > "after on" => "on" Will fix. >>> Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm:260 >>> + // or if they are not accessed in 3 days. This avoids accumulating profiles whenever we change >> >> "in 3 days" => "for 3 days" > > actually, I'm not sure which is more grammatically correct. I'll leave it up to you I copied from the official documentation which says "if they are not accessed in 3 days".
Chris Dumez
Comment 7 2020-05-21 08:25:32 PDT
EWS
Comment 8 2020-05-21 09:08:54 PDT
Committed r262004: <https://trac.webkit.org/changeset/262004> All reviewed patches have been landed. Closing bug and clearing flags on attachment 399956 [details].
mitz
Comment 9 2020-05-21 09:10:31 PDT
Comment on attachment 399956 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=399956&action=review > Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm:264 > WTFLogAlways("%s: Could not retrieve user cache directory path: %s\n", getprogname(), strerror(errno)); Should probably change this from “cache” to “temporary”.
Chris Dumez
Comment 10 2020-05-21 09:12:54 PDT
(In reply to mitz from comment #9) > Comment on attachment 399956 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=399956&action=review > > > Source/WebKit/Shared/mac/AuxiliaryProcessMac.mm:264 > > WTFLogAlways("%s: Could not retrieve user cache directory path: %s\n", getprogname(), strerror(errno)); > > Should probably change this from “cache” to “temporary”. Fixed in <https://trac.webkit.org/changeset/262005>, thanks.
Chris Dumez
Comment 11 2020-06-29 15:56:11 PDT
Reverted r262004 for reason: Revert r262004 as it is not OK to have a data vault in /var/folders/zy/g91x07sn08bgjkm8d_pg0vfc0000gn/T/ <rdar://problem/64540215> Committed r263705: <https://trac.webkit.org/changeset/263705>
Chris Dumez
Comment 12 2020-07-27 10:47:06 PDT
Chris Dumez
Comment 13 2024-02-20 20:31:56 PST
EWS
Comment 14 2024-02-21 10:21:22 PST
Committed 275108@main (2dfb4e9da6fd): <https://commits.webkit.org/275108@main> Reviewed commits have been landed. Closing PR #24861 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.