How to restrict file for access by a process