Skip to content

tools: Set umask before calling mkdtemp()

Samuel Cabrero requested to merge scabrero/adcli:umask-mkdtemp into master

When adcli is called from sssd it inherits the sssd's umask (0177) and as the default sssd.service file drops CAP_DAC_OVERRIDE, the result is that the directory is created with mode 0600 and the krb5.conf snippet can't be created even running as root.

Signed-off-by: Samuel Cabrero scabrero@suse.de

Merge request reports