Do not apply permission checks to private files.

Change-Id: Ica8cb8ff1b9d51adb731abff871a8776d94a3dc6