manual permission check based on stat output. Also, get rid of the executability check since it is not used. MFC after: 2 weeks
manual permission check based on stat output. Also, get rid of the executability check since it is not used. MFC after: 2 weeks