with-file-modes

with-file-modes is a Lisp macro in `subr.el'.

(with-file-modes MODES &rest BODY)

Execute BODY with default file permissions temporarily set to MODES.
MODES is as for `set-default-file-modes'.