提交 6d66dbf4 编写于 作者: C chengjinsong2

修复uevent crash

Signed-off-by: Nchengjinsong2 <chengjinsong2@huawei.com>
上级 39490f22
......@@ -134,7 +134,9 @@ static void SetDeviceLable(const char *path, char **symLinks)
if (strncmp(linkName, byNamePath, strlen(byNamePath)) == 0) {
(void)Restorecon(linkName);
lgetfilecon(linkName, &context);
setfilecon(path, context);
if (context != NULL) {
setfilecon(path, context);
}
return;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册