Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #1152 Add file mode as argument for file creation
As of now if a user uses umask as `0077` which is serve security level then any file created by default not readable by any different user. With this setup if that user run `crc setup` it will pass without any issue but then `crc start` fails with following error. ``` FATA Error opening file: /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf: open /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf: permission denied ``` This is happen since we create those file using `sudo` and don't provide any file-mode which makes those file only readable by root user and thus this failure.
- Loading branch information
1 parent
60261b4
commit 16515f6
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters