In order to support file integrity verification and mitigate risk of TOC/TOU vulnerabilities, allow callers to open the file with read only sharing mode.