[posix] flash file permission to 600 (#3085)

This commit is contained in:
Yakun Xu
2018-09-18 06:31:40 -10:00
committed by Jonathan Hui
parent 704511c96e
commit 0a86cc99ef
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ otError utilsFlashInit(void)
create = true;
}
sFlashFd = open(fileName, O_RDWR | O_CREAT, 0666);
sFlashFd = open(fileName, O_RDWR | O_CREAT, 0600);
lseek(sFlashFd, 0, SEEK_SET);
otEXPECT_ACTION(sFlashFd >= 0, error = OT_ERROR_FAILED);
+1 -1
View File
@@ -80,7 +80,7 @@ otError utilsFlashInit(void)
create = true;
}
sFlashFd = open(fileName, O_RDWR | O_CREAT, 0666);
sFlashFd = open(fileName, O_RDWR | O_CREAT, 0600);
lseek(sFlashFd, 0, SEEK_SET);
otEXPECT_ACTION(sFlashFd >= 0, error = OT_ERROR_FAILED);