Skip to content

Commit

Permalink
Merge pull request hyperhq#153 from bergwolf/volmode
Browse files Browse the repository at this point in the history
set umask when setting up container rootfs
  • Loading branch information
gao-feng authored Sep 9, 2016
2 parents 83223f6 + 3d942a4 commit 4c0887f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,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;
Expand Down

0 comments on commit 4c0887f

Please sign in to comment.