Bug 197568

Summary: Investigate no longer resolving symlinks when creating a SandboxExtension
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: REOPENED    
Severity: Normal CC: ap, bfulgham, darin, mjs, 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=197389
Bug Depends on: 197389    
Bug Blocks:    

Brent Fulgham
Reported 2019-05-03 10:46:24 PDT
When we originally wrote the SandboxExtension logic for handling files, we believed that they had to be defined in terms of the canonical paths on the file system. We added logic to resolve symlinks prior to issuing the extensions. We now know that this is unnecessary work, and could be avoided entirely. This is likely to improve performance of certain file operations, and should be investigated as a way to further improve performance.
Attachments
Brent Fulgham
Comment 1 2019-05-03 10:46:55 PDT
Brent Fulgham
Comment 2 2019-05-17 10:07:59 PDT
After discussing this with Sandbox experts, it is not true that we can avoid resolving symlinks. We should not pursue this idea.
Brent Fulgham
Comment 3 2019-05-17 10:18:25 PDT
Whoops -- we need fully-resolved names in Sandbox profile rules. But I think we can pass a sandbox extension to a path containing symlinks, and it's usable.
Note You need to log in before you can comment on or make changes to this bug.