BZ(1169544,1169561,1169558): improvements on security related to file
access