Set restricted permissions for mtce logfiles
This update sets the umask for the mtclog daemon to restrict permissions on logfiles it creates. Change-Id: I712ecd46e4c550b946dd1df39557a8e0a87dad3d Partial-Bug: 1836632 Signed-off-by: Don Penney <don.penney@windriver.com>
This commit is contained in:
parent
3aea82253e
commit
fd962863ce
@ -1,3 +1,3 @@
|
|||||||
SRC_DIR="src"
|
SRC_DIR="src"
|
||||||
TIS_PATCH_VER=152
|
TIS_PATCH_VER=153
|
||||||
BUILD_IS_SLOW=5
|
BUILD_IS_SLOW=5
|
||||||
|
@ -251,7 +251,10 @@ void daemon_service_run ( void )
|
|||||||
/* The CONFIG_COMPLETE file may be empty so don't look at size,
|
/* The CONFIG_COMPLETE file may be empty so don't look at size,
|
||||||
* look at the node and dev ids as non-zero instead */
|
* look at the node and dev ids as non-zero instead */
|
||||||
} while ((p.st_ino == 0 ) || (p.st_dev == 0)) ;
|
} while ((p.st_ino == 0 ) || (p.st_dev == 0)) ;
|
||||||
|
|
||||||
|
/* Set umask for the log files that will be created */
|
||||||
|
umask(027);
|
||||||
|
|
||||||
/* Run daemon main loop */
|
/* Run daemon main loop */
|
||||||
for ( ; ; )
|
for ( ; ; )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user