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:
Don Penney 2019-07-15 14:56:32 -04:00
parent 3aea82253e
commit fd962863ce
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
SRC_DIR="src"
TIS_PATCH_VER=152
TIS_PATCH_VER=153
BUILD_IS_SLOW=5

View File

@ -251,7 +251,10 @@ void daemon_service_run ( void )
/* The CONFIG_COMPLETE file may be empty so don't look at size,
* look at the node and dev ids as non-zero instead */
} 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 */
for ( ; ; )
{