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"
|
||||
TIS_PATCH_VER=152
|
||||
TIS_PATCH_VER=153
|
||||
BUILD_IS_SLOW=5
|
||||
|
@ -252,6 +252,9 @@ void daemon_service_run ( void )
|
||||
* 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 ( ; ; )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user