提交 9db4d17f 编写于 作者: X xionglei6

modify: umask in init

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 424c315d
......@@ -80,9 +80,6 @@ static int SetPerms(const Service *service)
}
}
// umask call always succeeds and return the previous mask value which is not needed here
(void)umask(DEFAULT_UMASK_INIT);
struct __user_cap_header_struct capHeader;
capHeader.version = _LINUX_CAPABILITY_VERSION_3;
capHeader.pid = 0;
......
......@@ -91,6 +91,8 @@ static int FdHolderSockInit(void)
void SystemInit(void)
{
SignalInit();
// umask call always succeeds and return the previous mask value which is not needed here
(void)umask(DEFAULT_UMASK_INIT);
MakeDirRecursive("/dev/unix/socket", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
int sock = FdHolderSockInit();
if (sock >= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册