mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-09-06 05:31:58 +00:00
set umask when setting up container rootfs
So that we can truly create files and directories in any mode. Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
@@ -512,6 +512,9 @@ static int hyper_setup_container_rootfs(void *data)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* To create files/directories accessible for all users. */
|
||||
umask(0);
|
||||
|
||||
if (hyper_rescan_scsi() < 0) {
|
||||
fprintf(stdout, "rescan scsi failed\n");
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user