BZ(1169544,1169556, 1169557,1169559,1169560): improvements on security related to file access