BZ 1065438: apply umask in setPermission