提交 4adccf9f 编写于 作者: N Neil Horman 提交者: Zhang Rui

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: NNeil Horman <nhorman@tuxdriver.com>
Acked-by: NJacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: NZhang Rui <rui.zhang@intel.com>
上级 951fda3d
......@@ -355,7 +355,7 @@ static void start_daemon_mode()
disable_tui();
/* change the file mode mask */
umask(0);
umask(S_IWGRP | S_IWOTH);
/* new SID for the daemon process */
sid = setsid();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册