mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 19:57:46 +00:00
[posix] flash file permission to 600 (#3085)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user