xml: set permissions for file io