Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

tmon: set umask to a reasonable value

Currently, the tmon umask value is set to 0, which means whatever the permission
mask in the shell are when starting tmon in daemon mode are what the permissions
of any created files will be.  We should likely set something more explicit, so
lets go with the usual 022

Signed-off-by: Neil Horman <>
Acked-by: Jacob Pan <>
Signed-off-by: Zhang Rui <>
  • Loading branch information...
commit 4adccf9fc84aaf5e4d18442e163d549e0b603075 1 parent 951fda3
Neil Horman authored zhang-rui committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  tools/thermal/tmon/tmon.c
2  tools/thermal/tmon/tmon.c
@@ -355,7 +355,7 @@ static void start_daemon_mode()
/* change the file mode mask */
- umask(0);
+ umask(S_IWGRP | S_IWOTH);
/* new SID for the daemon process */
sid = setsid();
Please sign in to comment.
Something went wrong with that request. Please try again.