diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 4a86e9a2b..2c63bf7b0 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -759,11 +759,11 @@ int main(int argc, char **argv) { | |||
759 | struct stat s; | 759 | struct stat s; |
760 | if (stat(dirname, &s) == -1) { | 760 | if (stat(dirname, &s) == -1) { |
761 | /* coverity[toctou] */ | 761 | /* coverity[toctou] */ |
762 | if (mkdir(dirname, S_IRWXU | S_IRWXG | S_IRWXO)) | 762 | if (mkdir(dirname, 0700)) |
763 | errExit("mkdir"); | 763 | errExit("mkdir"); |
764 | if (chown(dirname, getuid(), getgid()) < 0) | 764 | if (chown(dirname, getuid(), getgid()) < 0) |
765 | errExit("chown"); | 765 | errExit("chown"); |
766 | if (chmod(dirname, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) < 0) | 766 | if (chmod(dirname, 0700) < 0) |
767 | errExit("chmod"); | 767 | errExit("chmod"); |
768 | } | 768 | } |
769 | free(dirname); | 769 | free(dirname); |